Files
superset2/superset-frontend/plugins/plugin-chart-echarts/test
Claude Code 66158aa477 fix(echarts): allow forcing categorical x-axis for temporal columns
The "Force categorical" toggle (xAxisForceCategoricalControl) was only
visible when the x-axis column was Numeric. Temporal x-axes default to a
continuous time scale, where ECharts auto-places ticks at "nice" intervals
that don't line up with the actual buckets, so weekly/monthly grain markers
appear shifted away from their ticks (issue #28204).

The transform layer already supports a categorical axis for temporal data;
only the control's visibility gate blocked it. Expose the toggle for
temporal columns too so users can opt into a discrete, tick-aligned axis.
The numeric-only auto-force-when-sorted behavior in initialValue is left
unchanged, so existing temporal charts keep their time scale unless the user
opts in.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 22:24:31 -07:00
..