Boards¶
A board is a cross-filtered dashboard: datasets, filters, KPI cards and chart or table panels on a 12-column grid. tools.charts.board publishes four files together:
- the poster PNG at 2x;
- its poster SVG;
- an offline
.board.htmlwhose filter bar cross-filters every panel; - the
.board.jsonthe board was built from.
Every write is a plan and a commit: tools.charts.plan_board previews the four files and the changes, and tools.charts.board takes the plan's id.
A first board¶
{
"board": {
"version": 1,
"kicker": "Quarterly review",
"title": "Regional revenue and conversion",
"subtitle": "Filter by quarter; the KPIs, the chart and the table update together offline",
"source": "Source: finance close",
"datasets": {
"sales": {
"rows": [
{ "region": "North", "quarter": "Q1", "month": "2026-01", "revenue": 510, "conversion": 0.12 },
{ "region": "South", "quarter": "Q1", "month": "2026-01", "revenue": 390, "conversion": 0.09 },
{ "region": "North", "quarter": "Q2", "month": "2026-04", "revenue": 540, "conversion": 0.13 },
{ "region": "South", "quarter": "Q2", "month": "2026-04", "revenue": 420, "conversion": 0.11 }
]
}
},
"filters": [
{ "id": "quarter", "label": "Quarter", "dataset": "sales", "field": "quarter", "control": "segmented" }
],
"kpis": [
{ "id": "rev", "label": "Total revenue", "dataset": "sales", "field": "revenue", "aggregate": "sum", "format": "currency", "delta": { "value": 0.14, "label": "vs prior quarter" }, "sparkline": { "x": "month", "y": "revenue", "aggregate": "sum" } },
{ "id": "conv", "label": "Mean conversion", "dataset": "sales", "field": "conversion", "aggregate": "mean", "format": "percent", "decimals": 1 }
],
"panels": [
{ "id": "by_region", "title": "Revenue by region", "dataset": "sales", "span": 6, "chart": { "quick": { "type": "bar", "x": "region", "y": "revenue", "aggregate": "sum", "sort": true } } },
{ "id": "detail", "title": "Regional detail", "dataset": "sales", "span": 6, "chart": { "kind": "table", "columns": [{ "field": "region", "label": "Region" }, { "field": "quarter", "label": "Quarter" }, { "field": "revenue", "label": "Revenue", "format": "currency", "align": "right" }], "limit": 20 } }
]
},
"currency": "EUR",
"name": "regional-review"
}
Pass it to tools.charts.plan_board, inspect output.files and output.panels, then commit with tools.charts.board and the plan's id.
The document¶
| Key | Holds |
|---|---|
version | 1. |
title, subtitle, kicker, source | The frame's text, drawn on the poster and shown on the page. |
width, columns | The page width and the grid's column count; the default is a 12-column grid. |
datasets | Named datasets, each rows or a workspace path, with an optional format and transform. |
filters | Filter controls: segmented, select, chips, range or search, each over a dataset field. |
kpis | KPI cards with an aggregate, a format, an optional delta and an optional sparkline. |
tabs | Optional tabs, each id and label; a panel names its tab. |
panels | The grid panels, each with a dataset, a span and a chart. |
A panel's chart is one of:
{ "quick": { "type": "bar", "x": "region", "y": "revenue", "aggregate": "sum", "sort": true } }, a standard chart from field names;{ "engine": "vega-lite", "spec": { … } }, a raw engine spec, withengineoptional;{ "kind": "table", "columns": [ … ], "limit": 20 }, a data-graphic table panel.
The page¶
The .board.html is self-contained: its fonts, its scripts and its data are inlined, so it opens offline. The filter bar cross-filters the KPIs, charts and tables together. Nothing is fetched, and the page carries no request to another host.
Output¶
The four files are written under outputs/charts/ (or the configured outDir), named after name. A plan names all four before anything is written.