<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Gauge</title>
<script src="~/js/jquery-3.2.1.js"></script>
<script src="~/js/jquery-3.2.1.min.js"></script>
<script src="~/js/echarts.js"></script>
</head>
<body>
<div id="mydiv" style="height:500px;width:800px;">
</div>
</body>
</html>
<script type="text/javascript">
var mychart = echarts.init(document.getElementById('mydiv'));
var option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}]
};
mychart.setOption(option, true);
</script>
Echarts之Bar[柱状图]
最新推荐文章于 2024-07-30 13:32:04 发布