mirror of
https://github.com/apache/superset.git
synced 2026-07-15 03:05:43 +00:00
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>