dosubot[bot] commented on issue #39899: URL: https://github.com/apache/superset/issues/39899#issuecomment-4384917850
<!-- Answer --> This is a known and actively-discussed issue. You actually raised this same topic in [Discussion #39361](https://github.com/apache/superset/discussions/39361), where it was explored in detail [[1]](https://github.com/apache/superset/discussions/39361). **Root cause:** ECharts' `hideOverlap: true` setting aggressively suppresses the last label when it detects potential overlap at the axis boundary. Despite several fixes merged in early 2026 ([PR #37755](https://github.com/apache/superset/pull/37755), [PR #38733](https://github.com/apache/superset/pull/38733), [PR #38979](https://github.com/apache/superset/pull/38979)), there's a discrepancy between those PRs and the current codebase — `showMaxLabel` does not appear to be set in the current `transformProps.ts` [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts#L503-L508). The `showMaxLabel` approach has a troubled history: it was added, reverted (PR #24995) due to "phantom labels," and subsequent fixes evolved away from it. **Current state:** There is **no deterministic user-facing configuration** that guarantees the last time label is always shown [[1]](https://github.com/apache/superset/discussions/39361). The available workarounds are: 1. **Apply non-zero X-axis label rotation** (e.g., 45°) — triggers `hideOverlap: false` in newer builds 2. **Increase chart width** to reduce overlap detection 3. **Theme-level override** (Superset 6.0+) — use `echartsOptionsOverridesByChartType` to inject `showMaxLabel: true` globally if you control the deployment 4. **Cast date column to STRING** at the dataset level and set "X Axis Label Interval → All" to bypass time-scale overlap logic entirely For your monitoring dashboard use case where the latest timestamp must always be visible, a feature request for an exposed `showMaxLabel` toggle or a dedicated "Always show last label" control would be well-motivated. The infrastructure partially exists — extending the ECharts Options JS editor (currently available for Evolution chart types) to Time-Series charts would also address this. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=8d334c6a-2c62-4a7d-a71d-ff561afd5e39) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset) -- 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]
