javascript - echart sets ymax:1000. Values greater than 1000 will exceed the hidden display of the image. It is hoped that values exceeding 1000 will be on the y-axis point of 1000.
The y setting max of echarts refers to the display value of the y-axis. When you get the data, you can loop and judge if it exceeds 1000, it is equal to 1000, and then draw echart
Your requirement should be controlled in the data instead of setting it in yAxis. You can perform function processing on the y value of the data to be passed into echart. If it is greater than 1000, just set it to 1000. For example, in the array.map(function(e){....}) function, just continue to judge and process the y value of each item.
The y setting max of echarts refers to the display value of the y-axis. When you get the data, you can loop and judge if it exceeds 1000, it is equal to 1000, and then draw echart
Your requirement should be controlled in the data instead of setting it in yAxis. You can perform function processing on the y value of the data to be passed into echart. If it is greater than 1000, just set it to 1000. For example, in the array.map(function(e){....}) function, just continue to judge and process the y value of each item.