ECharts
View on GitHub
Home
Example
API & Doc
Download
ZIP (1.1.0)
ZIP (Latest)
Link
Ecom-FE
Data Visualization
ZRender
Tangram
option
option = { tooltip : { trigger: 'axis' }, legend: { data:['利润', '支出', '收入'] }, toolbox: { show : true, feature : { mark : true, dataView : {readOnly: false}, magicType:['line', 'bar'], restore : true } }, calculable : true, xAxis : [ { type : 'value' } ], yAxis : [ { type : 'category', data : ['周一','周二','周三','周四','周五','周六','周日'] } ], series : [ { name:'利润', type:'bar', data:[200, 170, 240, 244, 200, 220, 210] }, { name:'收入', type:'bar', stack: '总量', barWidth : 5, itemStyle: {normal: { color: 'rgba(138, 43, 226, 0.3)' }}, data:[320, 302, 341, 374, 390, 450, 420] }, { name:'支出', type:'bar', stack: '总量', itemStyle: {normal: { color: 'rgba(30, 144, 255, 0.3)' }}, data:[-120, -132, -101, -134, -190, -230, -210] } ] };
Refresh ~