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
Zooming a log axis aggregates with log10 values as data bounds #74
On a log axis, Plotly reports the viewport in log10 units: a visible range of 10 to 100 is [1, 2]. handleRelayout (flexviz/adapters/js/plotly/events.js) stores these numbers in state.viewport unchanged, and the engine uses them as data bounds. Every trace that re-aggregates on that axis (line x, histogram data axis, histogram2d) then aggregates the wrong range.
Drag-zoom the x axis. Measured on main (2026-09-23):
Plotly shows 15.8 to 249.5.
state.viewport stores {min: 1.20, max: 2.40}, and the viewport event sends the same.
The server returns one point (x = 2).
Fix direction
Convert at the viewport boundary: store data units when a gesture writes state.viewport on a log axis (10 ** v), and convert back to log10 when syncLayoutViewport writes the layout. Add a browser regression test with a real drag on a log axis.
Linked axes (Dashboard.link_axes) reject log axes until this is fixed.
Activity
jvdd commentedon Sep 29, 2026
Fixed by #113.