How to set Highcharts chart maximum yAxis value

后端 未结 3 1071
太阳男子
太阳男子 2020-12-08 18:11

I\'ve been trying for two days to find a way to set the maximum value of the yAxis on Highcharts.

I got a percentage column graphic

3条回答
  •  不思量自难忘°
    2020-12-08 18:39

    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;
    

提交回复
热议问题