dashboardbuilder is a Stata command that turns an analytic result into a
shareable, interactive HTML dashboard — tabs, KPI tiles, line/bar/comparison charts, a
"choose a unit" selector, per-panel CSV/PNG downloads, and a build receipt telling you what
still needs a human pass. The examples below are produced by build_site.do in
this repository.
net install dashboardbuilder, from("https://raw.githubusercontent.com/ericabooth/dashboardbuilder-stata-public/main/") replace force
Open a live dashboard
State explorer
Pick a state from the dropdown and every panel re-renders for it, against a national reference row. Shows the selector, tabs, KPI tiles, and shared-scale comparison bars with a reference marker. Texas 2036 theme.
Open dashboard →Texas county readiness explorer
Two sparkta2 D3 maps of all 254 counties (a choropleth and a bivariate two-variable
cut), each embedded as a panel via the html type, alongside KPI and
ranking charts. Still one self-contained file, with the PDF button pinned to the corner.
A century of US life expectancy
Life expectancy from 1900 to 1999 on an overview tab, and the male–female gap on a second tab. Shows multi-series line charts and feeding a different data subset to each panel.
Open dashboard →Auto quick look
The smallest useful build: a bar chart and a data table from a collapsed summary, in a handful of lines. A good starting point to copy and adapt.
Open dashboard →Filter with a dropdown
1978 auto data: choose Domestic or Foreign from the dropdown and the bar charts re-render for that origin. Shows the "choose a unit" selector working as a plain filter on everyday data, not just geography.
Open dashboard →Embed a chart
A sparkta2 D3 donut dropped into a panel with the html type. The same
mechanism embeds any self-contained HTML (Google Charts, Plotly, a hand-built page);
CDN-based libraries just need internet.
The Texas county map uses synthetic values for illustration. The other dashboards use
datasets that ship with Stata (auto, census,
uslifeexp).