HighCharts - two Y-axis, one with max value

前端 未结 3 1652
清歌不尽
清歌不尽 2021-02-19 22:45

I have problem with Highcharts, I\'ve set right Y-axis to min:0 and max:100 (it\'s %) but it won\'t work and make 125 percentage. What\'s wrong?

http://jsfiddle.net/SdTc

3条回答
  •  萌比男神i
    2021-02-19 23:26

    The problem you're having is that highcharts is trying to align the ticks. There are two ways of handling this problem with the current data set:

    max: 100
    

    changes to

    max: 75
    

    or, you need to set alignTicks as false

    chart: {
        type: 'area',
        alignTicks: false
    }
    

提交回复
热议问题