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
Axis handling gaps found while reviewing linked axes #81
Found during the review of PR #77. Each item existed on main before that PR, and each is checked as noted.
A layout autorange: "reversed" is lost on the first render. Confirmed in a browser. syncLayoutViewport (flexviz/adapters/js/plotly/render.js) sets autorange = true for every axis without a viewport key. fig.update_layout(xaxis={"autorange": "reversed"}) on a line renders 0..999 normal (_fullLayout.xaxis.autorange is true).
axes=("y", "x") maps columns to the wrong axis. Confirmed. figure_axis_columns (flexviz/spec.py) follows the trace role convention: axes[0] shows backend_data["x"]. For add_line(x="ts", y="v", axes=("y", "x")) it returns {"y": {"ts"}, "x": {"v"}}. recompute_axes and linked axes (link_axes(on="ts") would link fig/y) depend on that mapping.
A flexvizApply that locks axes does not update the lock UI. Confirmed in a browser. After flexvizApply({client_state: {axis_locks: ..., axis_lock_ranges: ...}}), the range is pinned (100..200), but the panel button still reads "Lock Axes" and the drag mode stays zoom.
The cube path does not normalize reversed viewport ranges. Confirmed in code only; the effect is untested. FlexEngine.process swaps descending (hi, lo) pairs at ingestion (_normalize_axis_ranges), but build_cubes receives viewports_by_figure without that step, so _cube_axis_range can see a reversed pair.
A numeric column on an axis set to type: "date" fails on zoom with 500. Confirmed in a browser (2026-09-23). An epoch-ms column with fig.update_layout(xaxis={"type": "date"}) renders as dates, but a drag sends date strings ('2024-01-03 02:55:57.3034'), and the line trace fails in bucket_grid with TypeError: unsupported operand type(s) for -: 'str' and 'str'. Linked axes refuse this combination since PR feat: linked axes across dashboard figures #77 (5e51aae). Fix direction: convert date-string bounds to epoch ms for numeric columns on date-typed axes, or document that numeric time columns should be cast to Datetime.
Item 2 (axes=("y", "x") maps columns to the wrong axis): no longer reachable.refactor(figure)!: remove the public axes parameter #110 removed the public axes= parameter. The trace constructors still take axes=, but only tests pass other values.
Decision on item 5 (2026-09-29): reject the setup. A numeric column on an axis with type "date" fails fast with a message that tells the user to cast the column to Datetime. This matches what linked axes do since PR #77. Item 3 is fixed on main by d370e8f, so item 5 is the only open item.
Activity
jvdd commentedon Sep 23, 2026
type: "date"fails on zoom with 500. Confirmed in a browser (2026-09-23). An epoch-ms column withfig.update_layout(xaxis={"type": "date"})renders as dates, but a drag sends date strings ('2024-01-03 02:55:57.3034'), and the line trace fails inbucket_gridwithTypeError: unsupported operand type(s) for -: 'str' and 'str'. Linked axes refuse this combination since PR feat: linked axes across dashboard figures #77 (5e51aae). Fix direction: convert date-string bounds to epoch ms for numeric columns on date-typed axes, or document that numeric time columns should be cast toDatetime.fix(adapters): sync the axis lock controls after a spec restore (#81 …
jvdd commentedon Sep 29, 2026
Status after #110 and #117:
autorange: "reversed"is lost): fixed by fix: keep reversed axes reversed and sort reversed cube viewports #117.axes=("y", "x")maps columns to the wrong axis): no longer reachable. refactor(figure)!: remove the public axes parameter #110 removed the publicaxes=parameter. The trace constructors still takeaxes=, but only tests pass other values.flexvizApplythat locks axes does not update the lock UI): still open.type: "date"axis fails on zoom with 500): still open.jvdd commentedon Sep 29, 2026
Decision on item 5 (2026-09-29): reject the setup. A numeric column on an axis with type "date" fails fast with a message that tells the user to cast the column to Datetime. This matches what linked axes do since PR #77. Item 3 is fixed on main by d370e8f, so item 5 is the only open item.