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

   ## **Sequence Diagram**
   
   The PR ensures transformProps passes the chart's time grain to the X-axis 
formatter and replaces the undefined adaptive formatter with a time-grain-aware 
smart date formatter so ECharts renders human-friendly date labels instead of 
raw timestamps.
   
   ```mermaid
   sequenceDiagram
       participant transformProps
       participant FormattersUtils
       participant TimeFormatter
       participant ECharts
   
       transformProps->>FormattersUtils: getXAxisFormatter(xAxisTimeFormat, 
timeGrainSqla)
       FormattersUtils->>TimeFormatter: create smart-date formatter 
(time-grain-aware)
       TimeFormatter-->>FormattersUtils: return TimeFormatter (normalizes dates 
by grain)
       FormattersUtils-->>transformProps: TimeFormatter
       transformProps->>ECharts: attach axisLabel.formatter = TimeFormatter
       ECharts->>TimeFormatter: format(date) when rendering labels
       TimeFormatter-->>ECharts: formatted date string
   ```
   
   ---
   *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