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
Plotly draws Time and Duration values on a category axis: Time as strings like "00:08:52", Duration as ISO strings like "PT8M52S". A zoom then reports the range as category positions, not values: 89.6 to 149.5 in the test below. The engine uses those positions as data bounds, and the request fails with HTTP 500:
Time: InvalidOperationError: could not determine supertype of: [time, datetime[μs]] in expression 'search_sorted'
Duration: InvalidOperationError: casting from Duration('μs') to Datetime('μs') not supported
Reproduction
Public API only, verified on main on 2026-09-23 with a real mouse drag:
Drag-zoom the x axis. The initial render works, and every zoom returns 500. A Duration column (pl.duration(seconds=...)) behaves the same.
Fix direction
Send these axes to Plotly as numbers: seconds of the day for Time, the duration in a unit for Duration. Add tick labels in the time format, and convert the zoom range back to the column type in the engine. Until then, Dashboard.link_axes rejects Time and Duration axes (PR #77).
Decision (2026-09-29): do the full fix. Send Time and Duration axes to Plotly as numbers (seconds of the day, duration in one unit), add tick labels in the time format, and convert the zoom range back to the column type in the engine. No stopgap.
Activity
jvdd commentedon Sep 29, 2026
Decision (2026-09-29): do the full fix. Send Time and Duration axes to Plotly as numbers (seconds of the day, duration in one unit), add tick labels in the time format, and convert the zoom range back to the column type in the engine. No stopgap.