beta
beta

Reputation: 5696

highcharts: set max value of yaxis issue

see this jsfiddle: http://jsfiddle.net/k0hrz224/2/

i want the max value of the yaxis to be 100. currently, as you can see, it is 150 and i dont know why, because i explicitly set max: 100 of this yaxis.

i know that changing (on line 101)

 min: -25

to

min: 0

seems like a solution. however i need min: -25 because i want to display A and B as it is shown in the example.

Upvotes: 0

Views: 843

Answers (2)

beta
beta

Reputation: 5696

finally i managed to do it. i "hardcoded" the ticks on my own:

tickPositions: [-25, 0, 25, 50, 75,100]

then i experienced the desired behavior, i.e., no wrong autoscaling of any axis.

Upvotes: 0

jlbriggs
jlbriggs

Reputation: 17800

Things can get a little odd when you have multiple y axes.

Add this to your chart:

chart: {
   alignTicks:false  
}

Which will stop the different axes from trying to resolve with each other, and stop your axis at 100.

Example:

Reference:

Upvotes: 1

Related Questions