07-19 7367人
设置属性:min=1.1, max=2.4,splitNumber=10
代码:
option = { tooltip : { trigger : 'axis' }, legend : { data : textLine }, calculable : true, dataZoom : { show : true, // realtime: true, start : 0, end : 100 }, xAxis : [ { type : 'category', boundaryGap : true, axisTick : { onGap : false }, splitLine : { show : false }, data : arrX } ], yAxis : [ { min:1.1, max:2.4, splitNumber:10, type : 'value', axisLabel : { formatter : '{value}' } } ], series : [ { name : textLine[0], type : 'line', data : dataValue } ] }