Skip to main content
You will end with a PNG of one chart for a chat or a slide, and a PDF of a whole dashboard for email or the record. The steps use the sales dashboard from the quickstart.

1. Render one card

It writes 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:
An unknown value fails with the values the filter accepts, instead of falling back to the default.

4. Print a PDF

An --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 with HM0011; 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.