Production-ready
Chart Validation Agent
Deterministic validation agent that ensures every chart has the correct type for its data shape and the correct configuration keys for its frontend component. Validates data fitness, normalizes config keys across 15+ cha
Enterprise Assistant department for Colaberry Enterprise agents
Built by Colaberry
About the Agent
What this agent does, the challenges it addresses, and where it delivers value.
Deterministic validation agent that ensures every chart has the correct type for its data shape and the correct configuration keys for its frontend component. Validates data fitness, normalizes config keys across 15+ chart types, applies business-friendly titles, removes empty charts, and ensures a minimum chart count. No LLM calls - pure functions with sub-2ms latency.
Challenges This Agent Addresses
- 1**Business Intelligence**: Ensures dashboard charts always render correctly regardless of data shape variations
- 2**Education Analytics**: Validates student performance charts have appropriate visualization types for the data
- 3**Executive Reporting**: Guarantees professional, business-friendly chart titles instead of technical column names
How the Agent Works
Step-by-step operational flow showing how this agent processes tasks end-to-end.
Step 1
**Data shape validation**: Checks each chart against shape rules (minimum/maximum rows, required numeric columns). Demotes charts to "bar" type if their data does not fit the selected type (e.g., radar requires 3 to 8 rows).
Step 2
**Config key normalization**: Maps each chart type to its frontend component's expected config keys. For example, a bar chart gets `x_axis`, `xKey`, `category`, `y_axes`, and `bars` keys. This is the core fix for empty-rendering charts.
Step 3
**Business title cleanup**: Replaces technical titles (SQL fragments, query references) with business-friendly labels using the data analyst dictionary.
Step 4
**Empty chart removal**: Filters out charts with no data or all-zero values.
Step 5
**Minimum chart guarantee**: If fewer than 2 charts remain, synthesizes additional bar charts from SQL results by finding string/numeric column pairs.
Step 6
Caps output at 4 charts maximum.
Execution Modes
Inputs & Outputs
What data this agent consumes and the artifacts or actions it produces.
Input Data
- List of `ChartConfig` objects (type, title, data, labelKey, valueKey)
- List of `SqlResult` objects (for synthesizing additional charts if needed)
Deliverables
- Validated and normalized list of `ChartConfig` objects (max 4 charts), each with:
- Correct chart type for the data shape
- Normalized frontend config keys
- Business-friendly title
- Non-empty, non-zero data
Core Tasks
- Data & Analytics
Systems Connected
Internal systems, APIs, and tools this agent integrates with.
Tools & APIs
Agent Specs
Technical specifications, requirements, and deployment details.
Related Agents
Other agents in the same department or industry.
Ready to deploy this agent?
Schedule a walkthrough with our team to see how this agent integrates with your workflows.