Dashboards as Code (DAC) is a data visualization methodology in which configuration files serve as the primary interface for defining dashboards. Their contents are interpreted by a common engine to collect, integrate, analyze, and visualize organizational data. In the StrataBI Platform, each dashboard is a declarative JSON document, checked against the published JSON Schema, kept in version control, and run on Athena and Lambda in your own AWS account.
On this page: What it means · Advantages and limitations · Compared with traditional BI · Formats and schemas · Version control and CI/CD · Agentic development · StrataBI · Questions
The configuration file defines where visuals reside on a twelve-column grid, how data is collected, and how it renders. The runtime owns the rest: query execution, dependency ordering, status, results and rendering. There is no UI code in a dashboard, so changes are programmatically traceable.
In traditional BI development a dashboard is built in a visual designer and stored in the BI tool’s own database. Many tools also offer export formats and APIs; the real difference is which artifact is the source of truth.
| GUI-authored dashboards | Dashboards as Code | |
|---|---|---|
| Source of truth | The tool’s database | A file in a repository |
| Authoring | Drag and drop in a designer | An editor, a generator, or a builder that writes the same file |
| Review | By looking at the result; changes are hard to diff | A line-by-line diff in a pull request |
| Promotion between environments | Export and import, or rebuilt by hand | The same file deployed to each environment |
| History and rollback | Whatever versioning the tool keeps | Version control: redeploy an earlier commit |
| Automation | Through the tool’s API, where there is one | Scripts, templates and CI on plain files |
Whatever the format, the engine reads it into the same data structure, so one schema can describe it.
Those need a preview, a run against real data and a reviewer.
In StrataBI, keeping dashboard files in your own repository works in both editions; registering dashboards from Git and stratactl dashboards are Enterprise Edition features (below).
A valid file can still be wrong, so an agent’s dashboards need the same preview and review as anyone else’s. What we measured when models built StrataBI dashboards is on the benchmarks page.
Review your LLM providers, including Amazon Bedrock, for data flight and sufficient isolation for your organization’s needs when implementing AI. Learn more: Data protection in Amazon Bedrock
{
"name": "Revenue by Region",
"layout": [
{ "id": "note",
"position": { "row": 0, "order": 0, "width": 12 },
"block": { "type": "markdown",
"config": { "content": "Revenue by region." } } },
{ "id": "revenue",
"title": "Revenue by region",
"position": { "row": 1, "order": 0, "width": 12 },
"exec": { "type": "athena" },
"query": { "sql": [
"SELECT region, SUM(revenue) AS revenue",
"FROM sales",
"GROUP BY region" ] },
"block": { "type": "table",
"config": { "page_size": 25 } } }
]
}
stratabi dashboards push validates a file and uploads it to your system bucketstratactl dashboards pull, list, diff and push; a push validates each file and refuses to overwrite a dashboard that changed in S3 since your last pull# Developer Edition: validate, then upload to analyst/dashboards/ in your system bucket
stratabi dashboards push revenue-by-region.json
# Enterprise Edition: the git-registered set, between S3 and your repository
stratactl dashboards pull # registered dashboards into ./dashboards, with a manifest
stratactl dashboards diff # which local files differ from S3
stratactl dashboards push # validate each file, then overwrite it in place
It is part of it. “BI as code” usually covers the whole analytics layer kept as code: transformations, metric definitions, semantic models, permissions and dashboards. Dashboards as Code is the dashboard part.
No. Exploratory dashboards made in a builder or by an AI assistant can stay disposable. Version control is for the dashboards people rely on.
Not necessarily. A builder that reads and writes the same file works alongside it: people can edit visually, and the result is still a file that can be diffed and reviewed.