Closed ale-coe closed 2 weeks ago
Hey,
I'm having the same problem, did you find a solution?
This is (at least) related to the fact that getPixelForValue limites its result to -32767..32767. When the annotation (or line) closest point is far enough in some direction, it gets limited. If I remember correctly, canvas has similar limitations.
maybe limit the zooming? and/or use a line chart instead of annotation with many points.
Current behavior
In an unzoomed state the blue dot is located directly on the line (the line itself is an annotation and the blue dot is part of a scatter chart). If I zoom in too much, the line shifts upwards and the dot is not located on the line anymore.
Swapping the annotation with a line chart or a scatter chart does not fix the issue.
Expected behavior
The zoomlevel does not affect how the line is displayed.
Reproducible sample
See this codepen.