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

   ## **Sequence Diagram**
   
   This PR enables theme authors to apply default styles to all array items 
(series, axes) using object syntax. The new merge function detects 
object-to-array merges and applies the object to each array item.
   
   ```mermaid
   sequenceDiagram
       participant ThemeConfig
       participant SupersetTheme
       participant EchartComponent
       participant mergeEchartsThemeOverrides
   
       ThemeConfig->>SupersetTheme: Pass echartsOptionsOverrides (config fix)
       
       EchartComponent->>mergeEchartsThemeOverrides: Merge baseTheme + 
chartOptions + overrides
       
       mergeEchartsThemeOverrides->>mergeEchartsThemeOverrides: Detect 
object-to-array<br/>(e.g., series: {...} → series: [{...}, {...}])
       
       mergeEchartsThemeOverrides->>mergeEchartsThemeOverrides: Apply object 
props to EACH array item
       
       mergeEchartsThemeOverrides-->>EchartComponent: Themed ECharts options
   ```
   
   ---
   *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