How to set max and min value for Y axis

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

    With 1.1.1, I used the following to fix the scale between 0.0 and 1.0:

    var options = {
        scaleOverride: true,
        scaleStartValue: 0,
        scaleSteps: 10,
        scaleStepWidth: 0.1
    }
    

提交回复
热议问题