codeant-ai-for-open-source[bot] commented on PR #37755:
URL: https://github.com/apache/superset/pull/37755#issuecomment-3860401497

   ## **Sequence Diagram**
   
   Shows how transformProps adjusts time-axis label settings and grid padding 
when x-axis labels are rotated to ensure the last date label remains visible 
and no phantom label is created.
   
   ```mermaid
   sequenceDiagram
       participant ChartProps
       participant transformProps
       participant EChartsAxis
       participant Grid
       participant ChartRenderer
   
       ChartProps->>transformProps: build chart options (formData, queriesData)
       transformProps->>EChartsAxis: Set axisLabel.hideOverlap = 
(xAxisType===Time && rotation!==0) ? false : true
       transformProps->>EChartsAxis: Do NOT set showMaxLabel/alignMaxLabel 
(remove phantom label behavior)
       transformProps->>Grid: If Time & rotation!==0 & not horizontal -> 
increase padding.right proportional to rotation
       transformProps-->>ChartRenderer: return echartOptions with updated axis 
config and grid padding
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


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