xAxis : [ {
type : 'value',
axisLabel: {
formatter:function(value,index){return parseInt(value);}
}
} ],
上面 的x轴 type 是value 当值是数字时可能会有小数点,或者.0 .5等小数,
我们在大括号内加入红色的部分就可以了
xAxis : [ {
type : 'value',
axisLabel: {
formatter:function(value,index){return parseInt(value);}
}
} ],
上面 的x轴 type 是value 当值是数字时可能会有小数点,或者.0 .5等小数,
我们在大括号内加入红色的部分就可以了