fix: last date label hidden on time series x-axis (#39899) - #42299
fix: last date label hidden on time series x-axis (#39899)#42299prathamesh04 wants to merge 1 commit into
Conversation
Code Review Agent Run #673e8eActionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ache#39899) When xAxisLabelRotation is 0 on a time axis, both hideOverlap and showMaxLabel are set, but hideOverlap can suppress the forced max label. Set hideOverlap to false when showMaxLabel is active so the last date label is never hidden by ECharts' overlap detection.
3860da9 to
e5a32e8
Compare
|
cc @rusackas — ready for review. Added video testing in the PR description. |
Code Review Agent Run #a2c4adActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #42299 +/- ##
==========================================
- Coverage 65.13% 65.13% -0.01%
==========================================
Files 2753 2753
Lines 154584 154586 +2
Branches 35463 35465 +2
==========================================
+ Hits 100695 100696 +1
- Misses 51975 51976 +1
Partials 1914 1914
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
cc @rusackas @sadpandajoe @michael-s-molina @EnxDev — ready for first review. Video testing included in PR description. Bito flagged minor test duplication (line 377 vs 312) but no blocking issues. |
rusackas
left a comment
There was a problem hiding this comment.
LGTM. MixedTimeseries/transformProps.ts gets the same hideOverlap/showMaxLabel change but only Timeseries picked up a test for it, mind adding one there too?
SUMMARY
When
xAxisLabelRotationis 0 on a time axis, bothhideOverlapandshowMaxLabelare set, but ECharts'hideOverlap: truecan still suppress the forced max label. This fix setshideOverlap: falsewhenshowMaxLabelis active so the last date label is never hidden by ECharts' overlap detection.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screencast.from.2026-07-22.13-12-23.webm
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Fixes #39899