Dashboards as code means a dashboard is a file in a git repository, a YAML or code definition of its metrics, charts, and filters, that is reviewed in a pull request and deployed on merge, instead of an object clicked together in a BI tool. This explainer covers what the file contains, why teams switch, the AI angle, and how Bruin, Lightdash, Evidence, and Rill implement it.