Visualizations
The Data Insights solution generates interactive Plotly visualizations as part of the conversational analytics pipeline. When a user’s question benefits from a visual answer, the Insights Agent automatically selects and generates the appropriate chart type.How Visualizations Are Generated
The Insights Agent determines when a visualization would enhance the answer and generates it as part of the agentic loop:1
Question analysis
The Insights Agent evaluates whether the question implies a visual answer. Questions about trends, comparisons, distributions, or proportions typically trigger visualization.
2
Data retrieval
The Text2SQL Agent generates and executes a query to retrieve the data needed for the visualization.
3
Chart type selection
The LLM selects the most appropriate chart type based on the data shape, question intent, and number of dimensions:
4
Code generation
The Insights Agent generates Python code using Plotly to create the visualization:
5
Rendering and delivery
The chart is rendered and delivered as an artifact via the A2A protocol. The frontend renders it as an interactive Plotly chart with hover tooltips, zoom, and pan capabilities.
Supported Chart Types
- Standard Charts
- Advanced Charts
Interactive Features
Plotly charts rendered in the frontend support full interactivity:- Hover tooltips: View exact values for each data point
- Zoom and pan: Focus on specific regions of the chart
- Legend toggle: Show/hide individual series by clicking the legend
- Download: Export as PNG or SVG directly from the chart toolbar
- Responsive sizing: Charts adapt to the container width
Chart Generation Examples
Time series trend
Time series trend
Question: “Show me the monthly revenue trend for the past year”The Insights Agent generates a line chart with months on the x-axis and revenue on the y-axis, including trend annotations for significant changes.
Category comparison
Category comparison
Question: “Compare sales across product categories by region”The agent generates a grouped bar chart with categories on the x-axis, sales on the y-axis, and color-coded bars for each region.
Distribution analysis
Distribution analysis
Question: “What does the distribution of order values look like?”The agent generates a histogram showing the frequency distribution of order values, with optional statistics overlay (mean, median, standard deviation).
Proportion breakdown
Proportion breakdown
Question: “What percentage of revenue comes from each channel?”The agent generates a pie or donut chart showing revenue proportions by channel, with percentage labels.
Artifact Storage
Generated visualizations are stored as session artifacts in the Talk2Data database:
Artifacts persist for the duration of the session and can be referenced in follow-up questions (“Make that a line chart instead” or “Add a trend line”).
Customization in Follow-Up Questions
Users can refine visualizations through natural-language follow-ups:Next Steps
Chat With Data
See the full conversational pipeline that produces visualizations.
Text-to-SQL
Understand how data is retrieved before visualization.
Analysis Agent
Learn about the reasoning engine that selects chart types.
Data Source Setup
Connect a database to start visualizing your data.

