prathamesh04 opened a new pull request, #42299:
URL: https://github.com/apache/superset/pull/42299

   ## Description
   When xAxisLabelRotation is 0 on a time axis, both `hideOverlap` and 
`showMaxLabel` were set, but ECharts' `hideOverlap: true` can still suppress 
the forced max label.
   
   This fix sets `hideOverlap: false` when `showMaxLabel` is active so the last 
date label is never hidden by ECharts' overlap detection.
   
   ## Changes
   - `transformProps.ts` (Timeseries): Set `hideOverlap: false` when 
`showMaxLabel` is true
   - `transformProps.ts` (MixedTimeseries): Same fix applied
   - `transformers.test.ts`: Updated existing test and added regression test 
for #39899
   
   ## How to test
   1. Create a time series chart with many data points
   2. Set x-axis label rotation to 0 (no rotation)
   3. Observe that the last date label on the x-axis is now visible
   4. Also verify labels don't overlap when there are many data points
   
   ## Screenshots
   N/A
   
   ## Checklist
   - [x] Tests pass
   - [x] Lint passes
   - [x] Regression test added
   
   Fixes #39899
   


-- 
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]

Reply via email to