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

   ## **Sequence Diagram**
   
   Shows how the Echart component now uses a custom merge function to apply 
theme overrides — including applying an object override to every item of 
array-based ECharts options — and then sets the merged options on the chart. 
This is the core behavior introduced in the PR.
   
   ```mermaid
   sequenceDiagram
       participant EchartComponent
       participant ThemeMergeUtil as mergeEchartsThemeOverrides
       participant ECharts as ChartInstance
   
       EchartComponent->>ThemeMergeUtil: merge(baseTheme, echartOptions, 
globalOverrides, chartOverrides)
       ThemeMergeUtil-->>EchartComponent: mergedOptions (object-to-array merge: 
object applied to each array item; arrays in source replace dest)
       EchartComponent->>ECharts: setOption(mergedOptions, true)
       ECharts-->>EchartComponent: render updated chart
   ```
   
   ---
   *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