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

   ## **Sequence Diagram**
   
   This PR fixes cross-filtering for multi-metric stacked charts so that 
clicking a segment emits filters based on groupby dimension values (with metric 
fields skipped) and updates dependent charts correctly.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant EchartsChart
       participant CrossFilterHandler
       participant DashboardFilters
       participant DependentChart
   
       User->>EchartsChart: Click stacked bar segment
       EchartsChart->>CrossFilterHandler: Handle click with labelMap and groupby
       CrossFilterHandler->>CrossFilterHandler: Skip metric labels and derive 
dimension values
       CrossFilterHandler->>DashboardFilters: setDataMask with dimension filters
       DashboardFilters->>DependentChart: Apply filters and refresh
       DependentChart-->>User: Updated data for selected dimension
   ```
   
   ---
   *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