Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

beginAtZero ignored in line chart if all values are 0

Open IonutLaceanu opened this issue 10 years ago • 2 comments

In v2.0, the beginAtZero attribute is ignored if all the values are 0. http://jsbin.com/kehuhuliju/1/edit?html,js,output

IonutLaceanu avatar Feb 03 '16 15:02 IonutLaceanu

Of course, The system does not know if you mean that zero is your max or your minimum

You might have to add a 'max' value if you espect zero to be the minimum value

Dergonic avatar Feb 03 '16 15:02 Dergonic

I solved it by adding a suggestedMax value.

IonutLaceanu avatar Feb 03 '16 16:02 IonutLaceanu