ChartKitBETA

Charts for blog posts

Static blogs love remote images: build the chart once, hotlink the URL, let readers’ browsers cache it. No bundling chart libraries into your theme.

Fit with static site generators

Hugo, Eleventy, Astro, Jekyll - all handle `!alt` or shortcodes that wrap `<img>`. ChartKit supplies the `url`.

MDX posts can still use plain images unless you need interactive widgets; start simple.

See also charts for Markdown for readme-centric workflows.

Use cases

  • Engineering blogs publishing benchmark posts with a handful of plots.
  • Founder letters where numbers update monthly - swap the query string when data changes.
  • Cross-posting the same article to dev.to and your own domain with identical image URLs.

Examples

SVG (sharp on retina)

https://getchartkit.com/api/chart?type=bar&labels=Build,Test,Ship&s0=18,12,27&s0name=Hours&title=Sprint+focus&format=svg&w=720&h=400

Markdown

![Sprint focus](https://getchartkit.com/api/chart?type=bar&labels=Build,Test,Ship&s0=18,12,27&s0name=Hours&title=Sprint+focus&format=svg&w=720&h=400)

Line chart for release metrics

https://getchartkit.com/api/chart?type=line&labels=R1,R2,R3,R4,R5&s0=14,12,15,18,17&s0name=Bugs&title=Bugs+per+release&format=svg

PNG when your CDN recompresses aggressively

https://getchartkit.com/api/chart?type=area&labels=Jan,Feb,Mar,Apr&s0=40,44,42,48&s0name=Latency&format=png&w=680&h=380

Draft your blog figure

Adjust fields and copy URL, HTML, Markdown, or an AI prompt. See the [URL parameters](/docs/url-parameters) reference if you are editing links by hand.

Preview

Monthly Revenue

Copy

Show snippets
URL
https://getchartkit.com/api/chart?type=bar&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact
HTML
<img src="https://getchartkit.com/api/chart?type=bar&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact" alt="Monthly Revenue" width="700" height="420" />
Markdown
![Monthly Revenue](https://getchartkit.com/api/chart?type=bar&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact)

How it works

  1. Author in your static generator’s Markdown, drop image syntax where figures go.
  2. Optional: wrap with `<figure>` and `<figcaption>` in HTML for accessibility.
  3. Set explicit width/height attributes to reduce layout shift.

Use with ChatGPT or Claude

LLM-drafted posts should embed ChartKit URLs you verify in preview.

AI publishing pipelines: charts for AI-generated content.

FAQ

Do I need chart.js on my blog?

No if you use image embeds.

SVG or PNG?

SVG for crisp diagrams; PNG if your pipeline rasterizes anyway.

WordPress?

Charts for WordPress.

Free?

Yes for typical public chart URL usage.

Canonical URL changes?

Update the image URL in git when numbers change so caches bust intentionally.

More ChartKit tools