chartshot

Charts as images, from one URL.

Send a JSON spec and get back a sharp PNG, SVG or WebP. Retina by default, light or dark, ready for the inbox, Slack, OG cards and your agents.

One spec at three sizes

preset
spec.json
{
  "type": "bar",
  "preset": "email",
  "theme": { … },
  "data": {
    "labels": [
      "Mon", "Tue", "Wed", "Thu", "Fri",
      "Sat", "Sun"
    ],
    "series": [
      {
        "name": "Signups",
        "values": [
          142, 168, 155, 189, 204, 96, 88
        ]
      }
    ]
  },
  "options": {
    "title": "Signups this week",
    "valueLabels": true,
    "grid": false,
    "yAxis": { "hidden": true }
  }
}
spec.json
{
  "type": "bar",
  "preset": "slack",
  "theme": { … },
  "data": {
    "labels": [
      "Mon", "Tue", "Wed", "Thu", "Fri",
      "Sat", "Sun"
    ],
    "series": [
      {
        "name": "Signups",
        "values": [
          142, 168, 155, 189, 204, 96, 88
        ]
      }
    ]
  },
  "options": {
    "title": "Signups this week",
    "valueLabels": true,
    "grid": false,
    "yAxis": { "hidden": true }
  }
}
spec.json
{
  "type": "bar",
  "preset": "og",
  "theme": { … },
  "data": {
    "labels": [
      "Mon", "Tue", "Wed", "Thu", "Fri",
      "Sat", "Sun"
    ],
    "series": [
      {
        "name": "Signups",
        "values": [
          142, 168, 155, 189, 204, 96, 88
        ]
      }
    ]
  },
  "options": {
    "title": "Signups this week",
    "valueLabels": true,
    "grid": false,
    "yAxis": { "hidden": true }
  }
}
Bar chart of signups each day this week, at the email preset
Bar chart of signups each day this week, at the slack preset
Bar chart of signups each day this week, at the og preset
GET /v1/chart2001200 × 600 px · 2×1600 × 800 px · 2×2400 × 1260 px · 2×
p95 render, uncached
84 ms
chart types, one spec
11
PNG by default
PNG, SVG, WebP
a plain img, no JavaScript
Gmail, Outlook

Charts where JavaScript can't run.

Inboxes, chat apps and link previews only show images. Chartshot turns your data into one, at the size each place expects.

  1. 01Email600 × 300

    Charts in email

    Gmail and Outlook strip scripts, so a chart in an email has to be an image. Put a Chartshot URL in an img tag and every reader sees the same sharp PNG.

    • PNG, tested in Gmail and Outlook
    • Retina at 2×, light or dark
    • Works with react-email
    Charts in email guide

    Your weekly report

    Acme Analyticsto meGmail

    You had 1,042 signups this week.

    Bar chart of signups each day this week

    Best day: Fri, with 204 signups.

  2. 02React EmailSDK

    Charts in React Email

    Drop ChartImage from the Chartshot SDK into a react-email template. It signs the chart's URL as the email renders, then you send it with Resend or any provider.

    • Signed on your server, no request
    • Width, height and alt text set for you
    • No badge on Pro and up
    Charts in React Email guide
    weekly-report.tsx
    import { ChartImage } from "@lglab/chartshot/react";
    import { Body, Html, Text } from "react-email";
    import { charts } from "./charts";
    
    export default function WeeklyReport({ days, signups }) {
      return (
        <Html>
          <Body>
            <Text>Here are this week's signups.</Text>
            <ChartImage
              charts={charts}
              spec={{
                type: "bar",
                preset: "email",
                data: {
                  labels: days,
                  series: [{ name: "Signups", values: signups }],
                },
              }}
            />
          </Body>
        </Html>
      );
    }
  3. 03Slack800 × 400

    Charts in Slack

    Post a chart to a channel in a Block Kit image block, from an incoming webhook or your own code. Slack fetches the URL and shows the chart in the message.

    • The slack preset, sized for a channel
    • Nothing to upload, just a URL
    • Works from a webhook, no bot needed
    Charts in Slack guide

    # metrics14 members

    Metrics bot APP 9:00 AM

    MRR for June: $48,200, up 54% in a year.

    Line chart: monthly recurring revenue

    2 replies

  4. 04OG image1200 × 630

    Chart OG images

    Make a page's link preview a live chart for X, LinkedIn and Slack. Set the og preset and put the chart's URL in the page's metadata.

    • Drawn at 2× for sharp previews
    • One line in Next.js metadata
    • Cached, so previews load fast
    Next.js OG images guide

    Acme @acme · 2h

    Our first half of 2026, in one chart.

    Bars and a line: revenue and customers

    acme.com

    First half of 2026: revenue up 21%

  5. 05AI agentsMCP

    Charts for AI agents

    Claude, Claude Code and Cursor draw charts from your data through Chartshot's MCP server, and hand back an image URL you can paste anywhere.

    • One MCP server, signed in with your key
    • Invalid specs come back with what to fix
    • Every chart is a plain URL
    MCP guide

    Chart where our traffic came from in June, as a donut.

    chartshot create_chart_url

    Here it is, drawn with Chartshot:

    Donut chart: traffic sources

    https://c.chartshot.dev/7Kq2mXa9Lp3Rt8VbN1cE4w.png

Your weekly report

Acme Analyticsto meGmail

You had 1,042 signups this week.

Bar chart of signups each day this week

Best day: Fri, with 204 signups.

weekly-report.tsx
import { ChartImage } from "@lglab/chartshot/react";
import { Body, Html, Text } from "react-email";
import { charts } from "./charts";

export default function WeeklyReport({ days, signups }) {
  return (
    <Html>
      <Body>
        <Text>Here are this week's signups.</Text>
        <ChartImage
          charts={charts}
          spec={{
            type: "bar",
            preset: "email",
            data: {
              labels: days,
              series: [{ name: "Signups", values: signups }],
            },
          }}
        />
      </Body>
    </Html>
  );
}

# metrics14 members

Metrics bot APP 9:00 AM

MRR for June: $48,200, up 54% in a year.

Line chart: monthly recurring revenue

2 replies

Acme @acme · 2h

Our first half of 2026, in one chart.

Bars and a line: revenue and customers

acme.com

First half of 2026: revenue up 21%

Chart where our traffic came from in June, as a donut.

chartshot create_chart_url

Here it is, drawn with Chartshot:

Donut chart: traffic sources

https://c.chartshot.dev/7Kq2mXa9Lp3Rt8VbN1cE4w.png

11 chart types. Every one is a URL.

Each chart here is a live image from api.chartshot.dev, requested at the size in its corner. Open one in the playground to see its spec and change it.

Make your first chart.

No sign-up needed to try it. Paste a chart URL into any img tag.

curl -o chart.png "https://api.chartshot.dev/v1/chart?c=eyJ0eXBlIjoiYmFyIiwidGhlbWUiOnsiZXh0ZW5kcyI6ImRlZmF1bHQiLCJmb250IjoiSW50ZXIiLCJsaWdodCI6eyJiYWNrZ3JvdW5kIjoiI2ZjZmRmZCIsImZvcmVncm91bmQiOiIjMGEwYTBhIiwibXV0ZWRGb3JlZ3JvdW5kIjoiIzVjNWM1YyIsImJvcmRlciI6IiNlNWU1ZTUiLCJjaGFydDEiOiIjMWY1ZmZmIiwiY2hhcnQyIjoiIzBhMGEwYSIsImNoYXJ0MyI6IiM4ZjhmOGYiLCJjaGFydDQiOiIjYThjMGZmIiwiY2hhcnQ1IjoiIzRhNGE0YSIsInJhZGl1cyI6MX0sImRhcmsiOnsiYmFja2dyb3VuZCI6IiMwYTBhMGEiLCJmb3JlZ3JvdW5kIjoiI2Y3ZjhmOCIsIm11dGVkRm9yZWdyb3VuZCI6IiNhMWExYTEiLCJib3JkZXIiOiIjMmUyZTJlIiwiY2hhcnQxIjoiIzNkN2JmZiIsImNoYXJ0MiI6IiNmN2Y4ZjgiLCJjaGFydDMiOiIjNzM3MzczIiwiY2hhcnQ0IjoiIzlkYjhmZiIsImNoYXJ0NSI6IiM0YTRhNGEiLCJyYWRpdXMiOjF9fSwiZGF0YSI6eyJsYWJlbHMiOlsiTW9uIiwiVHVlIiwiV2VkIiwiVGh1IiwiRnJpIiwiU2F0IiwiU3VuIl0sInNlcmllcyI6W3sibmFtZSI6IlNpZ251cHMiLCJ2YWx1ZXMiOlsxNDIsMTY4LDE1NSwxODksMjA0LDk2LDg4XX1dfSwib3B0aW9ucyI6eyJ0aXRsZSI6IlNpZ251cHMgdGhpcyB3ZWVrIiwidmFsdWVMYWJlbHMiOnRydWUsImdyaWQiOmZhbHNlLCJ5QXhpcyI6eyJoaWRkZW4iOnRydWV9fSwibW9kZSI6ImxpZ2h0In0"