Chart.js
Chart.js copied to clipboard
Bar chart starts below x-axis
Expected Behavior
Bar should start at the x-axis
Current Behavior
When series have big enough values (ex 1000000) and with yAxes bound with small enough values (from -0.05 to 0.05) rectangle flickers for duration of initial animation and starts not at the x-axis
Steps to Reproduce
https://jsfiddle.net/wgatm43e/6/
Context
I'm trying to integrate zoom plugin, and at high zoom values this issue appears
Environment
- Chart.js version: 2.9.3
- Browser name and version: Chrome 85
Reproduces in master: https://jsfiddle.net/efo5kvn6/
The issue seems to be with fillRect and large negative coordinates https://jsfiddle.net/3owh98f1/