codeant-ai-for-open-source[bot] commented on PR #38403:
URL: https://github.com/apache/superset/pull/38403#issuecomment-4054527095
## **Sequence Diagram**
This PR adds end to end support for big number charts in MCP chart
generation. The flow now validates big number specific inputs and maps them
into the correct Superset form data variant for either total only display or
trendline display.
```mermaid
sequenceDiagram
participant Client
participant MCPService
participant SchemaValidator
participant ChartUtils
participant SupersetBackend
Client->>MCPService: Request generate_chart with big_number config
MCPService->>SchemaValidator: Pre validate chart type and required fields
SchemaValidator-->>MCPService: Return validated big number config
MCPService->>ChartUtils: Map config to Superset form data
alt show trendline with temporal column
ChartUtils->>ChartUtils: Use big_number and set granularity and time
options
else no trendline
ChartUtils->>ChartUtils: Use big_number_total with metric only
end
MCPService->>SupersetBackend: Create chart from mapped form data
SupersetBackend-->>Client: Return created chart details
```
---
*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]