sanyamk23 opened a new pull request, #43729: URL: https://github.com/apache/superset/pull/43729
## What When the X Axis Label Interval control is set to "All" in area/line/time-series charts, Superset stores the value as the string `'0'` (from `SelectControl` choices). ECharts interprets string `'0'` as a truthy value and skips every label, showing only n, n+4, n+8 instead of all labels. This change converts `xAxisLabelInterval === '0'` to numeric `0` before passing to ECharts' `axisLabel.interval`, which correctly renders all labels. ## Test plan Added tests in both `transformProps.test.ts` (Timeseries) and `transformProps.test.ts` (MixedTimeseries) covering: - String `'0'` → numeric `0` - `'auto'` passed through unchanged - Numeric values passed through unchanged Fixes #36325 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
