ECharts
View on GitHub
Home
Example
API & Doc
Download
ZIP (1.1.0)
ZIP (Latest)
Link
Ecom-FE
Data Visualization
ZRender
Tangram
option
option = { legend: { orient: 'horizontal', // 'vertical' x: 'right', // 'center' | 'left' | {number}, y: 'bottom', // 'center' | 'top' | {number} backgroundColor: '#eee', borderColor: 'rgba(178,34,34,0.8)', borderWidth: 4, padding: 10, // [5, 10, 15, 20] itemGap: 20, textStyle: {color: 'red'}, data: ['蒸发量','降水量','最高气温','最低气温','组成','索引不到的'] }, xAxis :{ data : [] }, series : [ { name:'蒸发量', type:'bar', data:[] }, { name:'最高气温', type:'line', data:[] }, { name:'降水量', type:'bar', data:[] }, { name:'最低气温', type:'line', data:[] }, { name:'组成', type:'pie', data:[] } ] };
Refresh ~