Instance
1option = {2 title: {3Text: ' Evaporation and precipitation in a certain area ',4Subtext: ' Purely fictional '5 },6 tooltip: {7Trigger: ' axis '8 },9 legend: {Tendata:[' evaporation ', ' precipitation '] One }, A Toolbox: { -Show:true, - feature: { theMark: {show:true}, -DataView: {show:true, ReadOnly:false}, -Magictype: {show:true, type: [' line ', ' Bar ']}, -Restore: {show:true}, +Saveasimage: {show:true} - } + }, ACalculable:true, at Xaxis: [ - { -Type: ' Category ', -Data: [' January ', ' February ', ' March ', ' April ', ' May ', ' June ', ' July ', ' August ', ' September ', ' October ', ' November ', ' December '] - } - ], in YAxis: [ - { toType: ' Value ', + AxisLabel: { -Formatterfunction(value, index) { the returnValue.tofixed (1); * } $ }Panax Notoginseng } - ], the series: [ + { AName: ' Evaporation ', theType: ' Bar ', +data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3], - markpoint: { $ data: [ ${type: ' Max ', Name: ' Max '}, -{type: ' min ', name: ' Minimum '} - ] the }, - markline: {Wuyi data: [ the{type: ' Average ', Name: ' Average '} - ] Wu } - }, About { $Name: ' Precipitation ', -Type: ' Bar ', -data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3], - markpoint: { A data: [ +{Name: ' Year Supreme ', value:182.2, Xaxis:7, yaxis:183, symbolsize:18}, the{name: ' Lowest of the year ', value:2.3, Xaxis:11, Yaxis:3} - ] $ }, the markline: { the data: [ the{type: ' Average ', Name: ' Average '} the ] - } in } the ] the }; About
Echarts y-axis scale retains several decimals