How change Highchart minimum value

For my highchart, I want to set maximum value of 100 and minimum value of 1.

When I try to code like this, it outputs is 0-100 not 1-100.

  • Truncating Y-Axis Title in Highcharts v4.1.5
  • How to display highcharts in ng-repeat angularjs
  • Highcharts : How to fix labels to the top when xAxis rotation is 90°?
  • Highcharts nodeName of undefined
  • Javascript relative time 24 hours ago etc as time
  • Changing data dynamically for a series in Highcharts
  • If I change or remove max range, it works fine for small values of y.

    yAxis: {
                min:1,
                max:100,
                reversed: true,
                title: {
                    text: 'Rank'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
    },
    

  • Highcharts - HTML tooltip & datalabels render issue
  • High chart date
  • Highchart drillup issue
  • Highcharts - how to have a chart with dynamic height?
  • onclick event when part of highcharts funnel is clicked
  • Highchart is not working on Google chrome
  • 2 Solutions collect form web for “How change Highchart minimum value”

    You can try

    chart.yAxis[0].setExtremes(1,100);
    

    http://api.highcharts.com/highcharts#Axis.setExtremes

    If it is dynamic data/tick data you can set

    startOnTick : false
    

    This problem is discussed here also http://forum.highcharts.com/viewtopic.php?f=9&t=6862

    You can force the y-axis to have specific tick intervals using the tickPositioner function in the y-axis e.g.

            tickPositioner: function () {
                var positions = [1, 25, 50, 75, 100];
                return positions;
            }
    

    http://jsfiddle.net/cU2md/