You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot render plots with high datetime accuracy - needs 64bit datetime support in the renderer? #487
Awesome tool - thanks for releasing it, it is very good.
I have been testing it out with some time series science data - a line chart of values with datetimes on the x axis and I think the renderer struggles if you have large amounts of datetime data of the order of hundreds of datapoints per second, plotting many hours of data, so millions of data items to plot
It ends up looking like this - the x axis datetimes are getting quantised i think
And it should look more like this without the gaps/quantisation by forcing the data to a lower rate:
My AI coding companion reckons this on the cause of the issue:
looks like a bug in the xy charting library (v0.0.6): its WebGL client reconstructs each point's pixel position from a shared GLSL decode helper, xyDecode(encoded, meta) = encoded/meta.y + meta.x, entirely in 32-bit float. A real calendar-date epoch (~1.7e12 ms since 1970) exceeds f32's ~2^24 integer precision budget, so every point in a narrow window rounds to the same pixel column. This affects every mark type (line/scatter/step/stairs/segments all funnel through the same shader)
I threw some AI tokens at this and alastairtree#1 is the result. I do not know the codebase well enough to know if this is a good suggested fix or not so i will just link out to it but not submit a PR for it for now.
Activity
Fix f32 precision loss for high-rate datetime axes (issue reflex-dev#487
alastairtree commentedon Aug 12, 2026
I threw some AI tokens at this and alastairtree#1 is the result. I do not know the codebase well enough to know if this is a good suggested fix or not so i will just link out to it but not submit a PR for it for now.
Alek99 commentedon Aug 12, 2026
Thanks I'll take a look at the pr
Alek99 commentedon Aug 12, 2026
I think there are a few things that need to be fixed but if you open a pr on the repo I can leave some comments
Fold the linear view map per encoded column (issue reflex-dev#487)
Fold the linear view map per encoded column (issue reflex-dev#487)
alastairtree commentedon Sep 19, 2026
This is still waiting on a second round of PR review over at #489 @Alek99 if you get a chance. Thank you.