How to set echart 3.0 y-axis to a positive integer less than 5? ? ?
怪我咯
怪我咯 2017-05-19 10:35:54
0
1
576

echart 3.0 How to set the y-axis to a positive integer less than 5? ? ?

yAxis: {
    type: 'value',
    min:0,
    minInterval:1
},

The above settings set the y coordinate to be displayed as decimals. . .

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
淡淡烟草味

It stands to reason that if you set minInterval:1, there will be no decimals in the interval. It may be that the maximum value of the data you want to display is lower than 1, so for the display effect, it is automatically converted into a reasonable split ratio, like splitNumber in echart This type of configuration is an estimated value. The actual scale calculated based on the strategy may not achieve the desired effect. It is recommended that you add max:5 to yAxis. Give it a try. If that still doesn't work, you can use max:5,min:0,interval:5 to force settings. This is doable

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!