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

Bar chart starts below x-axis

Open LaserUnicorns opened this issue 6 years ago • 2 comments

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

LaserUnicorns avatar Oct 03 '20 21:10 LaserUnicorns

Reproduces in master: https://jsfiddle.net/efo5kvn6/

kurkle avatar Oct 03 '20 21:10 kurkle

The issue seems to be with fillRect and large negative coordinates https://jsfiddle.net/3owh98f1/

LaserUnicorns avatar Oct 04 '20 12:10 LaserUnicorns