How to set max and min value for Y axis

后端 未结 17 2084
既然无缘
既然无缘 2020-11-27 11:08

I am using line chart from http://www.chartjs.org/ \"enter

As you can see max value (1

17条回答
  •  春和景丽
    2020-11-27 11:18


    > Best Solution


      "options":{
                        scales: {
                                    yAxes: [{
                                        display: true,
                                        ticks: {
                                            suggestedMin: 0, //min
                                            suggestedMax: 100 //max 
                                        }
                                    }]
                                }
                        }
    

提交回复
热议问题