Supported data sources for agentic charts
Agentic charts are generated from the tabular output of analytical tools that produce non-token answers. This article describes each supported data source, what data it produces, and how it maps to charts.
Overview
Agentic charting supports any non-token answer that produces a tabular result set. The charting engine reads the result data, classifies columns by semantic type, and generates an appropriate visualization.
| Source | Description | Typical use case |
|---|---|---|
Code execution |
Python-based code runs to analyze data |
Forecasting, simulations, statistical modeling, custom calculations |
SpotQL |
SQL-based data queries executed by the agent |
Direct SQL queries against connected data sources |
MCP (Model Context Protocol) |
Web search and external data retrieval |
Comparing market data, retrieving public statistics, web-sourced analysis |
AgentQL |
Agent-generated data queries |
Custom data analysis via agent-structured queries |
Code execution
When you ask a question that requires computational analysis (for example, forecasting or trend analysis), Spotter can generate and execute Python code.
What data is produced
The code execution tool produces a tabular output with:
-
One or more data columns (quantitative values, dates, categories)
-
Optional metadata columns (confidence intervals, lower bounds, upper bounds)
-
Text output (explanations, interpretations)
The charting engine uses the tabular portion to render the chart.
Example
"Forecast sales for the next 6 months"
Python code generates a table with:
* Month (date)
* Forecasted Sales (quantitative)
* Lower Bound (quantitative)
* Upper Bound (quantitative)
The charting engine renders a line chart with: * A line for the forecasted sales * Shaded confidence interval between the lower and upper bounds * Properly formatted time axis
SpotQL
SpotQL is a SQL query interface that the agent can use to retrieve data directly from connected data sources.
MCP (Model Context Protocol)
The MCP tool allows the agent to search the web and retrieve data from external sources.
What data is produced
MCP returns data from multiple web sources, often as a structured table. The charting engine can handle:
-
Single data series (one chart)
-
Multiple data series (multiple charts or a combined chart)
Example
"Compare Nasdaq and Bitcoin prices"
MCP retrieves data from multiple web sources. The charting engine renders two distinct charts: * A line chart for Nasdaq prices * A separate line chart for Bitcoin prices
Each chart has its own appropriate axis and formatting.
|
When MCP returns data from multiple unrelated sources, the charting engine may render separate charts for clarity rather than combining them on a single axis. |
AgentQL
What makes data chartable
For agentic charting to generate a visualization, the non-token answer must produce:
-
Tabular data — At least one row and one column of data
-
At least one quantitative column — A numeric measure to plot
-
At least one dimension column — A category, date, or label to organize the measure by
If the result contains only a single scalar value (for example, "Total revenue: $1,000,000"), the charting engine may display the value as a KPI or simple metric rather than a chart.