There is a decimal point on the vertical axis scale of the echarts chart, the problem

Cause of the problem: When the data is small, the coordinates of the y-axis of the echarts graph will spread the data with a decimal point to make it evenly displayed.

 

 But the actual requirement is to count the number of emails received each month, and the decimal does not meet the actual requirements.

Add a line of code to control the minimum scale in yAxis. Reference official website: Documentation - Apache ECharts

{
    minInterval: 1
}

Modified result:

 

Guess you like

Origin blog.csdn.net/weixin_44948981/article/details/129024270