ECharts
View on GitHub
Home
Example
API & Doc
Download
ZIP (Latest)
Link
Ecom-FE
Data Visualization
ZRender
option
option = { tooltip : { trigger: 'axis' }, toolbox: { show : true, y: 'bottom', feature : { mark : true, dataView : {readOnly: false}, magicType:['line', 'bar'], restore : true, saveAsImage : true } }, calculable : true, legend: { data:['上周对比','本周变化'] }, xAxis : [ { type : 'category', data : ['周一','周二','周三','周四','周五','周六','周日'] } ], yAxis : [ { type : 'value', power: 10, splitArea : {show : true} } ], series : [ { name:'上周对比2', type:'bar', stack: '1', barWidth: 20, tooltip : { show: 'false', trigger:'none' }, itemStyle:{ normal:{ borderColor:'rgba(0,0,0,0)', color:'rgba(0,0,0,0)' }, emphasis:{ borderColor:'rgba(0,0,0,0)', color:'rgba(0,0,0,0)' } }, data:[320, 332, 200, 334, 300, 330, 320] }, { name:'本周变化', type:'bar', stack: '1', data:[120, 132, 101, 134, 90, 230, 210] }, { name:'上周对比', type:'line', data:[320, 332, 301, 334, 390, 330, 320] } ] };
Refresh ~