Thau Nguyen
Thau Nguyen

Reputation: 35

Min/Max yAxis not working correctly in Highcharts

I've 2 yAxis in demo, I set min/max value for both yAxis is min of 0, max of 200. But they don't work correctly. They are applied 250 for both.

Thanks

Upvotes: 2

Views: 3437

Answers (1)

SteveP
SteveP

Reputation: 19093

Normally I would expect endOnTick:false would sort the issue, but that didn't work on it's own.

I got it to work using endOnTick:false together with alignTicks:false.

   yAxis: [{
        max: 200,
        min: 0,
        alignTicks: false,
        endOnTick: false,
        title: {
            text: 'Primary Axis'
        }
    }, {
        max: 200,
        min: 0,
        alignTicks: false,
        endOnTick: false,
        title: {
            text: 'Secondary Axis'
        },
        gridLineWidth: 0,
        opposite: true
    }],

Upvotes: 5

Related Questions