sales dashboard from the
quickstart.
1. Render one card
sales.revenue_trend.png: the card exactly as a browser draws it, at twice the pixel
density. --block takes the block’s id from the dashboard file. Leave it out for the whole page.
2. Pick the size and theme
--width sets the window width, so 390 gives the phone layout. --out names the file.
3. Show a filtered view
--filter sets a period, grain or segment filter to a value the page URL would carry. Add a period
filter to dashboards/sales.yaml, after its region filter:
4. Print a PDF
--out ending in .pdf prints the whole dashboard on Letter or A4 paper, with the same numbers
the page shows and charts that stay sharp. --page-pngs also saves each printed page as a PNG, so
you can look at the pages before you send them.
For a written report with numbers in its sentences, see Reports.
If no browser is found
Render draws with an installed Chrome, Chromium or Edge. Without one it fails withHM0011; run it
once with --install-browser to download Chromium’s headless shell.
Next
hatchmark render lists every option, the PDF layout rules and exit codes.