Using echarts drawing, how can I scale to an integer without displaying a negative coordinate system?

use echarts to set the scale non-decimal when drawing (set minInterval), but when the data is small, the negative coordinate system will appear:


:


,min0:


:

how can I scale to an integer without showing a negative coordinate system?

Mar.21,2021

the minimum interval size of the axis calculated automatically by yAxis.minInterval / / is set to 1 to ensure that the axis division scale is displayed as an integer

{
    min:0,
    minInterval :1
}

according to the document, this is fine. You can send all the code to take a look at

Menu