Documentation Index
Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:Question analysis
The Insights Agent evaluates whether the question implies a visual answer. Questions about trends, comparisons, distributions, or proportions typically trigger visualization.
Data retrieval
The Text2SQL Agent generates and executes a query to retrieve the data needed for the visualization.
Chart type selection
The LLM selects the most appropriate chart type based on the data shape, question intent, and number of dimensions:
| Data Pattern | Chart Type |
|---|---|
| Trends over time | Line chart |
| Category comparison | Bar chart |
| Part-to-whole | Pie / Donut chart |
| Distribution | Histogram |
| Correlation | Scatter plot |
| Multi-dimensional | Grouped / Stacked bar |
Supported Chart Types
- Standard Charts
- Advanced Charts
| Chart | When Used | Plotly Function |
|---|---|---|
| Line | Time series, trends | px.line() |
| Bar | Category comparison | px.bar() |
| Pie / Donut | Proportions (< 8 categories) | px.pie() |
| Scatter | Correlations, distributions | px.scatter() |
| Histogram | Value distributions | px.histogram() |
| Area | Cumulative trends | px.area() |
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:| Artifact Component | Storage |
|---|---|
| Chart specification | Plotly JSON stored in the artifacts table |
| Underlying data | Query results stored alongside the chart |
| Python code | Generation code preserved for reproducibility |
| Metadata | Chart type, title, axes, timestamp |
Customization in Follow-Up Questions
Users can refine visualizations through natural-language follow-ups:| Request | Result |
|---|---|
| ”Make that a bar chart” | Chart type changed |
| ”Show only the top 5” | Data filtered, chart updated |
| ”Add a trend line” | Trend line overlay added |
| ”Use a logarithmic scale” | Y-axis scale changed |
| ”Split by region” | Color dimension added |
| ”Show as a percentage” | Values converted to proportions |
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.

