How to set Highcharts chart maximum yAxis value How to set Highcharts chart maximum yAxis value javascript javascript

How to set Highcharts chart maximum yAxis value


Try this:

yAxis: {min: 0, max: 100}

See this jsfiddle example


Alternatively one can use the setExtremes method also,

yAxis.setExtremes(0, 100);

Or if only one value is needed to be set, just leave other as null

yAxis.setExtremes(null, 100);


Taking help from above answer link mentioned in the above answer sets the max value with option

yAxis: { max: 100 },

On similar line min value can be set.So if you want to set min-max value then

yAxis: {   min: 0,        max: 100},

If you are using HighRoller php library for integration if Highchart graphs then you just need to set the option

$series->yAxis->min=0;$series->yAxis->max=100;