-
Notifications
You must be signed in to change notification settings - Fork 191
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
Labels
Milestone
Comments
That's known behaviour due to precision issues with float 32 values. See
#1563
…On Mon, 12 Dec 2022, 14:47 Khôi Tran, ***@***.***> wrote:
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 apply the scales
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: image]
<https://user-images.githubusercontent.com/5426590/207071653-8d4760ac-f481-4c0b-8d68-e6ab7e2197cd.png>
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).
—
Reply to this email directly, view it on GitHub
<#1776>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJ2MNMPV4THXYTTKI4Z73WM43HXANCNFSM6AAAAAAS4A25C4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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).
The text was updated successfully, but these errors were encountered: