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

[BUG] beginAtZero does not have effect for horizontalBar Charts

Open Gujie-Novade opened this issue 9 years ago • 2 comments

The beginAtZero parameter does not work for horizontalBar charts (although it works for bar charts).

Here is a link for you to test http://codepen.io/anon/pen/LxZEzE You can see that the scales starts at 2 when drawing horizontal bars even though the option beginAtZero is set.

Gujie-Novade avatar Jan 13 '17 03:01 Gujie-Novade

In a horizontal chart that is the xAxis. Change yAxis to xAxis and it works as expected.

decherneyge avatar Jan 13 '17 04:01 decherneyge

Oh ok my bad

Gujie-Novade avatar Jan 13 '17 04:01 Gujie-Novade