<script type="text/javascript" src="js/echarts.min.js"></script> <div id="myChart" style="width:90%;height:480px;"></div>
<div id="pie" style="width:90%;height:480px;"></div>
<div id="stack" style="width:90%;height:480px;"></div>
<div id="cand" style="width:90%;height:480px;"></div> // 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('myChart'));
// 指定图表的配置项和数据
var option = {
title: {
text: '本月销售量统计',
left: 'center'
},
tooltip: {},
xAxis: {
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
},
yAxis: {},
series: [{
name: '销量',
type: 'bar',
data: [115, 220, 136, 100, 100, 60]
}]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
