Ask an AI agent to build a data dashboard and it typically dumps hundreds of lines of brittle HTML, JavaScript, and frontend boilerplate. Traditional BI tools lean on point-and-click UIs, leaving little room for code-driven agents. dbt Charts from dbt Labs bridges that gap by defining an entire dashboard inside a single YAML file.

Dashboards Unified in One YAML File

dbt Charts keeps data queries and visual layout in one readable spec. SQL handles data fetching, YAML declares chart types and grid placement, Markdown formats narrative text, and Jinja powers variables and macros.

The spec already covers more than 1,000 configuration options and 16 built-in chart types, including composite multi-layer views. Styling cascades cleanly from theme to dashboard to individual chart, and the extends keyword lets teams reuse house style presets without copy-pasting blocks.

Native dbt Integration and Automated CI Checks

Placing a charts/ directory right next to models/ on the same Git branch puts the visualization layer directly on top of your transformation DAG. Queries reference upstream dbt models with standard ref() syntax.

Pre-merge validation catches breaking changes early. Running dbt parse && dct validate charts/ in CI flags renamed models or dropped columns right on the pull request. Built-in visual warnings also inspect layout geometry: if bar widths get cramped or tables overflow the viewport, the validator returns concrete fix hints that an AI agent can act on immediately.

Local CLI and Hosted Sync

Released under the Apache 2.0 license, dbt Charts runs locally without requiring a cloud account. Install it in Python via uv tool install dbt-charts and run dct skills intro to prime your coding agent with the schema conventions.

An accompanying hosted platform adds conversational analytics and a visual drag-and-drop editor. Edits made in chat or the browser write straight back to the same YAML file in Git, keeping local CLI workflows, CI pipelines, and hosted views in lockstep.

While syntax may still evolve prior to version 1.0, the parser includes automatic migration helpers. Treating BI dashboards as validated code next to dbt models tightens the loop between data engineering and analytics.

Summary

  • Replaces sprawling frontend code with a single declarative YAML file that AI agents can edit and humans can audit
  • Co-locates chart specs with dbt models in Git to catch broken SQL references and layout overflows during CI
  • Syncs edits across local CLI tools, AI chat, and visual editors back into the same version-controlled YAML file