Highcharts y-axis Ceiling not being respected

前端 未结 3 1087
一整个雨季
一整个雨季 2021-01-14 00:51

I have a problem with Highcharts where the Ceiling of one of my two y-axes is not being respected.

Y-axis \"1\" represents percentage values, so has a Floor of 0 and

3条回答
  •  萌比男神i
    2021-01-14 01:38

    I had a similar problem, but I found that using the following solves the issue:

            maxPadding: 0,
            minPadding: 0,
    

    The default for these values are both 0.05 so that will be added to your data and cause highstock to make the y axis bigger than intended. Zeroing them out seems to fix the problem for me.

    I also recommend to set the following so that maximum value still has a label:

            showLastLabel: true,
    

    http://jsfiddle.net/M4bVz/

提交回复
热议问题