codeant-ai-for-open-source[bot] commented on PR #34661:
URL: https://github.com/apache/superset/pull/34661#issuecomment-3858273805
## **Sequence Diagram**
The PR ensures the x-axis formatter returns the smart date (D3-aware)
formatter when the "Adaptive" (SMART_DATE_ID) option is selected so localized
month/day names are used. The diagram shows the main success path and the
alternative paths for custom or absent formats.
```mermaid
sequenceDiagram
participant Viz as Visualization
participant Util as XAxis Formatter Util
participant TimeFmt as TimeFormatter (D3 locale-aware)
participant ECharts
Viz->>Util: request x-axis formatter (format = SMART_DATE_ID)
Util->>TimeFmt: getSmartDateFormatter() (D3 locale)
TimeFmt-->>Util: TimeFormatter (locale-aware)
Util-->>ECharts: return TimeFormatter
ECharts-->>Viz: render x-axis labels (localized month/day names)
alt format is custom string
Viz->>Util: request x-axis formatter (format = "%Y-%m-%d")
Util->>TimeFmt: getTimeFormatter(format)
Util-->>ECharts: return TimeFormatter
else no format specified
Viz->>Util: request x-axis formatter (no format)
Util-->>ECharts: return undefined (ECharts default)
end
```
---
*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]