How to add a chart to a PDF

PDF generators (wkhtmltopdf, headless Chrome, LaTeX, report engines) can embed an image by URL but can't run a charting library reliably. A YakCharts URL returns a PNG that drops straight into the document.

Just an image URL

Point your report template's image tag at a YakCharts /api/chart.png URL. The chart is baked into the PDF at render time — no browser, no build step.

See it work

YakCharts example

Put this chart in your own emails, reports and dashboards

YakCharts turns data into a PNG from a single URL — no charting library, no JavaScript, no screenshots. Free tier included; every plan has all 28 chart types.

Start free Read the docs