codeant-ai-for-open-source[bot] commented on PR #38403:
URL: https://github.com/apache/superset/pull/38403#issuecomment-4033756424
## **Sequence Diagram**
This diagram shows how the MCP service validates and maps a Big Number chart
request into Superset form_data, including resolving whether to render a
standalone number or a number with trendline.
```mermaid
sequenceDiagram
participant Client
participant MCPService
participant SchemaValidator
participant ChartModel
participant ChartMapper
participant SupersetBackend
Client->>MCPService: generate_chart with config (chart_type big_number)
MCPService->>SchemaValidator: Pre-validate chart_type and big number
fields
SchemaValidator-->>MCPService: Pre-validation success (big_number
allowed)
MCPService->>ChartModel: Parse into BigNumberChartConfig
ChartModel-->>MCPService: Validated BigNumberChartConfig
MCPService->>ChartMapper: map_config_to_form_data(BigNumberChartConfig)
ChartMapper->>ChartMapper: map_big_number_config and resolve viz_type
ChartMapper-->>MCPService: Superset form_data (big_number or
big_number_total)
MCPService->>SupersetBackend: Create or explore chart with form_data
SupersetBackend-->>Client: Chart link or result for Big Number display
```
---
*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]