hatchmark dev --open running while you work. The page updates on every save, and problems
show over the page.
1. Start the file
Every file underdashboards/ is one page, named after the file. Create dashboards/regions.yaml:
period sets one window for every block on the page. The values are in the
dashboards reference.
2. Lead with the headline numbers
Start with the three or four numbers a reader checks first. Consecutive KPIs share one card.better. See
KPI.
3. Show the trend
Add a line chart under the KPIs.split draws one line per region, and span: 8 leaves room
for a breakdown beside it.
4. Break it down
Put a ranking beside the trend and the detail below it.5. Let readers filter
Filters sit in the page header. Add a region picker and a choice of periods:6. Check and build
check reports each problem with a code, the file and line, and a fix. hatchmark explain <code>
says more about one code. build writes dist/regions/index.html.
Next
- Components: every block type, with examples.
- Metrics: define your own numbers, targets and formats.
- Render to PNG or PDF: share a page or one chart outside the browser.