How to set max and min value for Y axis

后端 未结 17 2119
既然无缘
既然无缘 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:30

    Just set the value for scaleStartValue in your options.

    var options = {
       // ....
       scaleStartValue: 0,
    }
    

    See the documentation for this here.

提交回复
热议问题