Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing seriesWebGlLine for big values doesn't draw correctly, seriesCanvasLine is fine #1776

Open
KeeTraxx opened this issue Dec 12, 2022 · 1 comment

Comments

@KeeTraxx
Copy link

KeeTraxx commented Dec 12, 2022

I'm trying to draw a fc.seriesWebglLine(), my data has somewhat big values in it (167'085'207'000), since they're unix timestamps.

I noticed that the WebGL renderer somehow doesn't render the line correctly.

I tried to reproduce this in a CodePen where I draw the same line using seriesCanvasLine and seriesWebGlLine:

https://codepen.io/keetraxx/pen/xxzNpBM

image

The WebGL renderer just draws a straight line, also it seems to "snap" to some grid when you pan the chart up/down.

For much smaller numbers it doesn't happen (you can edit this offset in the CodePen).

@chrisprice
Copy link
Contributor

chrisprice commented Dec 13, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants