Skip to main content

Overview

The Visualization Agent transforms your data into interactive charts and visualizations. Describe what you want to see in plain English, and it analyzes your data, selects the right chart type, generates a validated Vega-Lite specification, and renders it directly in the BrightAgent interface — with tooltips, responsive layouts, and proper formatting.

Demo: Visualization Agent in Action

This demo starts at 14:15 and shows the visualization agent creating charts and dashboards.

What You Can Ask

  • “Show me a bar chart of sales by region”
  • “Create a trend line of customer acquisition costs over the past year”
  • “Display the correlation between marketing spend and revenue”
  • “Generate a breakdown of our top product categories”
  • “Compare this quarter’s metrics to last quarter as a pie chart”
  • “Show me a heatmap of activity by day and hour”

How It Works

  1. You describe what you want — Natural language request for any visualization, with optional chart type preferences.
  2. Data is prepared — The Analyst or Retrieval Agent queries your warehouse and returns results, or the agent reads from existing artifacts.
  3. Phase 1: Planning — An LLM analyzes a data sample to understand column types, distributions, and patterns. It selects the optimal chart type and maps columns to visual encodings.
  4. Phase 2: Generation — A more capable LLM produces a complete Vega-Lite v6 specification following the plan — including axes, colors, tooltips, and responsive layout.
  5. Validation — The specification is validated against the Vega-Lite schema. If invalid, the agent applies a retry strategy with error context until the specification passes.
  6. Rendered in BrightAgent — The chart appears as an interactive ChartViewer component with hover tooltips, responsive scaling, and proper formatting.

Chart Type Selection

The agent automatically recommends the best visualization based on your data characteristics:
Data PatternChart TypeWhen Used
Categories + numbersBar chartComparing values across groups
Time seriesLine chartShowing trends over time
Filled time seriesArea chartEmphasizing volume or cumulative trends
Two numeric variablesScatter plotExploring relationships and correlations
Part-of-wholeArc / donutShowing composition or proportions
DistributionsHistogram / box plotUnderstanding data spread and outliers
Dense matricesHeatmapShowing patterns across two dimensions
Geographic dataMap-basedSpatial analysis and regional comparisons
You can always override the recommendation — just specify the chart type you want.

Interactive Features

Every chart includes built-in interactivity:

Tooltips

Hover over any data point to see detailed values. Tooltips automatically include relevant fields from your data.

Responsive Layout

Charts automatically scale to fit the available space — from full-width dashboards to mobile views.

Color Encoding

Categories are automatically distinguished by color using accessible palettes. Numeric values can use gradient scales.

Intelligent Formatting

Numbers, dates, currencies, and percentages are formatted appropriately based on data type — no manual configuration needed.

Data Sources

The Visualization Agent receives data through multiple pathways:
  • From the Analyst Agent — Pre-analyzed data ready for charting, often as part of a multi-step workflow
  • From the Retrieval Agent — Raw query results from your warehouse, passed as artifacts with full metadata
  • From S3 files — Data files generated by other agents or uploaded directly, read from your organization’s storage
The agent handles data loading, type detection, and any necessary transformations before generating the chart.

Works With Other Agents

  • Analyst Agent provides aggregated query results and statistical insights that feed directly into visualizations.
  • Retrieval Agent identifies and fetches the right data assets, creating artifacts the Visualization Agent can consume.
  • BrightAgent coordinates multi-step workflows like “analyze sales by region and chart it” — routing through Retrieval, Analyst, and Visualization in sequence.
The Visualization Agent is part of the BrightAgent architecture. See capabilities for the full list of what BrightAgent can do.