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.
大家讲道理
大家讲道理 2017-05-19 10:13:02
0
2
418
yAxis: [
            {
               type : 'value',
                position: 'right',
                max: 1000
            }
        ],

I don’t know why I can’t upload the picture, click here

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
漂亮男人

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template