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

   ## **Sequence Diagram**
   
   This PR adds end to end support for big number charts in MCP chart 
generation, including request validation and form data mapping. The flow now 
branches to create either a standalone big number total or a big number with 
trendline based on trendline settings.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant MCP Service
       participant SchemaValidator
       participant Chart Mapper
       participant Superset Backend
   
       Client->>MCP Service: Generate chart with chart type big_number
       MCP Service->>SchemaValidator: Pre validate metric and trendline 
requirements
       SchemaValidator-->>MCP Service: Return validated config
       MCP Service->>Chart Mapper: Map config to Superset form data
   
       alt Trendline requested with temporal column
           Chart Mapper->>Chart Mapper: Use viz type big_number with temporal 
settings
       else Number only
           Chart Mapper->>Chart Mapper: Use viz type big_number_total
       end
   
       MCP Service->>Superset Backend: Create chart from mapped form data
       Superset Backend-->>Client: Return chart result
   ```
   
   ---
   *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