Chart gallery

Every chart type ChartPNG draws, as the image the engine returns. Each one has the Chart.js config, the URL that makes the image, and a link that opens it in the editor.

All numbers on this page are sample data, made up for the pictures, except in Editorial charts, where they are real and the source is named. The images are real: each is what the call under it returns.

Editorial charts

A chart a real product published, drawn from one config with no code.

Who moves the motorcycle market?

Rydger published this chart in its November 2026 registrations report. Each dot is a brand, placed by growth against the market (x) and by registrations (y), with both axes logarithmic and split at the market and at 600 a month. It uses per-point labels, annotations for the dividers and quadrant captions, custom tick text, and a brand: ink, plot area, the Archivo font and a footer mark.

Source: DGT registration microdata, computed by Rydger, in the published article.

Bubble chart in Spanish of 24 motorcycle brands in Spain, November 2026, in four quadrants by registrations and growth against the market. Zontes, up 128 percent, is the only brand above 600 registrations that grows faster than the market; Honda, Voge and BMW shrink.

The call: POST /chart

As a URL this config would be 13,328 characters, too long to print or paste, and close to the 14,000 a CDN accepts, so it is sent in the body. request.json is {"c": …, "w": 960, "h": 720, "dpr": 2, "bkg": "#0b0b0c"}, with the config below as c.

curl https://chartpng.dev/chart \
  -H "Content-Type: application/json" \
  -d @request.json \
  -o chart.png
The config, bubble, with datalabels, annotations, split-log ticks and a brand
{
  "type": "bubble",
  "data": {
    "datasets": [
      {
        "data": [
          {
            "x": 0.3641,
            "y": 0.8513,
            "r": 18.644
          },
          {
            "x": -0.4332,
            "y": 0.7785,
            "r": 17.9745
          },
          {
            "x": -0.1613,
            "y": 0.6222,
            "r": 16.6304
          },
          {
            "x": -0.4523,
            "y": 0.4271,
            "r": 15.1154
          },
          {
            "x": -0.7697,
            "y": 0.1597,
            "r": 13.3063
          },
          {
            "x": -0.3277,
            "y": 0.1256,
            "r": 13.0965
          },
          {
            "x": -0.521,
            "y": 0.0806,
            "r": 12.8251
          },
          {
            "x": -0.0597,
            "y": -0.0267,
            "r": 12.2525
          },
          {
            "x": -0.3676,
            "y": -0.0569,
            "r": 12.1339
          },
          {
            "x": 0.3751,
            "y": -0.2379,
            "r": 11.4557
          },
          {
            "x": 0.0351,
            "y": -0.2651,
            "r": 11.3584
          },
          {
            "x": 0.5674,
            "y": -0.3021,
            "r": 11.228
          },
          {
            "x": -0.64,
            "y": -0.3656,
            "r": 11.0092
          },
          {
            "x": 0.7138,
            "y": -0.4731,
            "r": 10.6531
          },
          {
            "x": 0.344,
            "y": -0.4822,
            "r": 10.6239
          },
          {
            "x": -0.2218,
            "y": -0.575,
            "r": 10.3314
          },
          {
            "x": -0.2096,
            "y": -0.583,
            "r": 10.3071
          },
          {
            "x": 0.4743,
            "y": -0.653,
            "r": 10.0954
          },
          {
            "x": 0.0538,
            "y": -0.6864,
            "r": 9.997
          },
          {
            "x": -0.7169,
            "y": -0.7022,
            "r": 9.951
          },
          {
            "x": 0.0573,
            "y": -0.7216,
            "r": 9.8949
          },
          {
            "x": -0.5568,
            "y": -0.8056,
            "r": 9.6579
          },
          {
            "x": -0.3978,
            "y": -0.8132,
            "r": 9.6372
          },
          {
            "x": 0.0266,
            "y": -0.9021,
            "r": 9.3974
          }
        ],
        "backgroundColor": ["rgba(245,165,36,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(245,165,36,0.18)", "rgba(245,165,36,0.18)", "rgba(245,165,36,0.18)", "rgba(107,122,153,0.18)", "rgba(245,165,36,0.18)", "rgba(245,165,36,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(245,165,36,0.18)", "rgba(245,165,36,0.18)", "rgba(107,122,153,0.18)", "rgba(245,165,36,0.18)", "rgba(107,122,153,0.18)", "rgba(107,122,153,0.18)", "rgba(245,165,36,0.18)"],
        "borderWidth": 0,
        "hoverRadius": 0
      },
      {
        "data": [
          {
            "x": 0.3641,
            "y": 0.8513,
            "r": 9.5642,
            "label": "Zontes  +128 %"
          },
          {
            "x": -0.4332,
            "y": 0.7785,
            "r": 9.2207,
            "label": "Honda  −15 %"
          }
        ],
        "backgroundColor": ["#f5a524", "#6b7a99"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": 0,
          "offset": 14.5642,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 14.4444,
            "weight": "bold"
          }
        }
      },
      {
        "data": [
          {
            "x": -0.1613,
            "y": 0.6222,
            "r": 8.5312,
            "label": "Yamaha  +1 %"
          },
          {
            "x": -0.521,
            "y": 0.0806,
            "r": 6.5791,
            "label": "Kymco  −19 %"
          },
          {
            "x": -0.3676,
            "y": -0.0569,
            "r": 6.2246,
            "label": "Kawasaki  −11 %"
          },
          {
            "x": 0.3751,
            "y": -0.2379,
            "r": 5.8766,
            "label": "Kove  +133 %"
          },
          {
            "x": -0.2218,
            "y": -0.575,
            "r": 5.2999,
            "label": "Aprilia  −3 %"
          },
          {
            "x": -0.5568,
            "y": -0.8056,
            "r": 4.9544,
            "label": "Macbor  −21 %"
          }
        ],
        "backgroundColor": ["#6b7a99", "#6b7a99", "#6b7a99", "#f5a524", "#6b7a99", "#6b7a99"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": 180,
          "offset": 13.5312,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 11.6667,
            "weight": "normal"
          }
        }
      },
      {
        "data": [
          {
            "x": -0.4523,
            "y": 0.4271,
            "r": 7.7541,
            "label": "Voge  −16 %"
          },
          {
            "x": -0.7697,
            "y": 0.1597,
            "r": 6.826,
            "label": "BMW  −31 %"
          },
          {
            "x": -0.3277,
            "y": 0.1256,
            "r": 6.7183,
            "label": "SYM  −9 %"
          },
          {
            "x": 0.5674,
            "y": -0.3021,
            "r": 5.7599,
            "label": "CFMoto  +241 %"
          },
          {
            "x": -0.64,
            "y": -0.3656,
            "r": 5.6476,
            "label": "Piaggio  −25 %"
          },
          {
            "x": 0.7138,
            "y": -0.4731,
            "r": 5.4649,
            "label": "Cyclone  +355 %"
          },
          {
            "x": 0.344,
            "y": -0.4822,
            "r": 5.45,
            "label": "Suzuki  +119 %"
          },
          {
            "x": -0.2096,
            "y": -0.583,
            "r": 5.2874,
            "label": "Rieju  −2 %"
          },
          {
            "x": 0.4743,
            "y": -0.653,
            "r": 5.1788,
            "label": "Silence  +183 %"
          },
          {
            "x": -0.7169,
            "y": -0.7022,
            "r": 5.1048,
            "label": "Triumph  −29 %"
          },
          {
            "x": 0.0573,
            "y": -0.7216,
            "r": 5.076,
            "label": "Mitt  +24 %"
          },
          {
            "x": -0.3978,
            "y": -0.8132,
            "r": 4.9438,
            "label": "Ducati  −13 %"
          },
          {
            "x": 0.0266,
            "y": -0.9021,
            "r": 4.8208,
            "label": "Peugeot  +17 %"
          }
        ],
        "backgroundColor": ["#6b7a99", "#6b7a99", "#6b7a99", "#f5a524", "#6b7a99", "#f5a524", "#f5a524", "#6b7a99", "#f5a524", "#6b7a99", "#f5a524", "#6b7a99", "#f5a524"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": 0,
          "offset": 12.7541,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 11.6667,
            "weight": "normal"
          }
        }
      },
      {
        "data": [
          {
            "x": -0.0597,
            "y": -0.0267,
            "r": 6.2854,
            "label": "QJ Motor  +7 %"
          }
        ],
        "backgroundColor": ["#6b7a99"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": 140,
          "offset": 11.2854,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 11.6667,
            "weight": "normal"
          }
        }
      },
      {
        "data": [
          {
            "x": 0.0351,
            "y": -0.2651,
            "r": 5.8267,
            "label": "KTM  +19 %"
          }
        ],
        "backgroundColor": ["#f5a524"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": 40,
          "offset": 10.8267,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 11.6667,
            "weight": "normal"
          }
        }
      },
      {
        "data": [
          {
            "x": 0.0538,
            "y": -0.6864,
            "r": 5.1283,
            "label": "Keeway  +24 %"
          }
        ],
        "backgroundColor": ["#f5a524"],
        "borderWidth": 0,
        "hoverRadius": 0,
        "datalabels": {
          "display": true,
          "anchor": "center",
          "align": -40,
          "offset": 10.1283,
          "color": "#f4f4f5",
          "font": {
            "family": "Archivo",
            "size": 11.6667,
            "weight": "normal"
          }
        }
      }
    ]
  },
  "options": {
    "layout": {
      "padding": {
        "left": 28,
        "right": 40,
        "top": 0,
        "bottom": 0
      }
    },
    "plugins": {
      "legend": {
        "display": false
      },
      "title": {
        "display": true,
        "text": "¿Quién mueve el mercado de la moto?",
        "align": "start",
        "color": "#f4f4f5",
        "font": {
          "family": "Archivo",
          "size": 28.8889,
          "weight": "bold"
        },
        "padding": {
          "top": 34,
          "bottom": 8
        }
      },
      "subtitle": {
        "display": true,
        "align": "start",
        "color": "#8a8a93",
        "font": {
          "family": "Archivo",
          "size": 13.8889
        },
        "padding": {
          "bottom": 38
        },
        "text": "España, noviembre de 2026: 24 marcas con más de 150 motos nuevas.  Derecha: crecen más que el mercado · Arriba: más de 600 al mes."
      },
      "annotation": {
        "clip": false,
        "annotations": [
          {
            "type": "line",
            "xMin": 0,
            "xMax": 0,
            "borderColor": "#34343a",
            "borderWidth": 1.5556
          },
          {
            "type": "line",
            "yMin": 0,
            "yMax": 0,
            "borderColor": "#34343a",
            "borderWidth": 1.5556
          },
          {
            "type": "label",
            "xValue": 0.012,
            "yValue": 0.86,
            "content": "mercado +11,1 %",
            "color": "#8a8a93",
            "font": {
              "family": "Archivo",
              "size": 11.6667,
              "weight": "normal"
            },
            "position": {
              "x": "start",
              "y": "start"
            },
            "padding": 0
          },
          {
            "type": "label",
            "xValue": -0.985,
            "yValue": 0.012,
            "content": "600 motos",
            "color": "#8a8a93",
            "font": {
              "family": "Archivo",
              "size": 11.6667,
              "weight": "normal"
            },
            "position": {
              "x": "start",
              "y": "end"
            },
            "padding": 0
          },
          {
            "type": "label",
            "xValue": -0.97,
            "yValue": 0.96,
            "content": "GRANDES QUE PIERDEN TERRENO",
            "color": "#6b7a99",
            "font": {
              "family": "Archivo",
              "size": 13.3333,
              "weight": "bold"
            },
            "position": {
              "x": "start",
              "y": "start"
            },
            "padding": 0
          },
          {
            "type": "label",
            "xValue": 0.97,
            "yValue": 0.96,
            "content": "GRANDES QUE TIRAN DEL MERCADO",
            "color": "#f5a524",
            "font": {
              "family": "Archivo",
              "size": 13.3333,
              "weight": "bold"
            },
            "position": {
              "x": "end",
              "y": "start"
            },
            "padding": 0
          },
          {
            "type": "label",
            "xValue": -0.97,
            "yValue": -0.96,
            "content": "PEQUEÑAS A LA BAJA",
            "color": "#6b7a99",
            "font": {
              "family": "Archivo",
              "size": 13.3333,
              "weight": "bold"
            },
            "position": {
              "x": "start",
              "y": "end"
            },
            "padding": 0
          },
          {
            "type": "label",
            "xValue": 0.97,
            "yValue": -0.96,
            "content": "PEQUEÑAS QUE DESPEGAN",
            "color": "#f5a524",
            "font": {
              "family": "Archivo",
              "size": 13.3333,
              "weight": "bold"
            },
            "position": {
              "x": "end",
              "y": "end"
            },
            "padding": 0
          }
        ]
      },
      "chartpng": {
        "values": false,
        "source": "Fuente: DGT, microdatos de matriculaciones (tipo 50, nuevas). Cálculo de Rydger.",
        "brand": {
          "text": "#f4f4f5",
          "muted": "#8a8a93",
          "grid": "#34343a",
          "plot": "#151517",
          "font": "Archivo",
          "mark": {
            "text": "rydger.com",
            "color": "#f5a524"
          }
        }
      }
    },
    "scales": {
      "x": {
        "type": "linear",
        "min": -1,
        "max": 1,
        "grid": {
          "display": false
        },
        "border": {
          "display": false
        },
        "ticks": {
          "color": "#8a8a93",
          "font": {
            "family": "Archivo",
            "size": 12.2222
          },
          "labels": {
            "-0.7497": "−30 %",
            "-0.4344": "−15 %",
            "-0.1705": "0",
            "0.1522": "+50 %",
            "0.2979": "+100 %",
            "0.5032": "+200 %",
            "0.7620": "+400 %"
          }
        },
        "title": {
          "display": true,
          "align": "start",
          "color": "#8a8a93",
          "font": {
            "family": "Archivo",
            "size": 11.1111
          },
          "text": "Eje vertical: matriculaciones de nov. 2026. Eje horizontal: variación frente a nov. 2025. Ambos en escala logarítmica, con cada mitad a su escala."
        }
      },
      "y": {
        "type": "linear",
        "min": -1,
        "max": 1,
        "grid": {
          "display": false
        },
        "border": {
          "display": false
        },
        "ticks": {
          "color": "#8a8a93",
          "font": {
            "family": "Archivo",
            "size": 12.2222
          },
          "labels": {
            "-0.9064": "150",
            "-0.4532": "300",
            "0.0000": "600",
            "0.3210": "1200",
            "0.6609": "2500",
            "0.9818": "5000"
          }
        }
      }
    }
  }
}

Bar charts

Compare amounts across categories: vertical, horizontal, stacked, or a bar and a line on one set of axes.

Bar

One bar per category, the default chart for counts.

Bar chart of signups by weekday, from Monday to Friday

The config, bar

{
  "type": "bar",
  "data": {
    "labels": ["Mon", "Tue", "Wed", "Thu", "Fri"],
    "datasets": [
      {
        "label": "Signups",
        "data": [24, 37, 31, 45, 39]
      }
    ]
  },
  "options": {
    "plugins": {
      "title": {
        "display": true,
        "text": "Signups by weekday"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Mon%22%2C%22Tue%22%2C%22Wed%22%2C%22Thu%22%2C%22Fri%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Signups%22%2C%22data%22%3A%5B24%2C37%2C31%2C45%2C39%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22Signups%20by%20weekday%22%7D%7D%7D%7D

Horizontal bar

The same bar chart turned on its side with indexAxis y, for long labels.

Horizontal bar chart of open support tickets by team

The config, bar, indexAxis y

{
  "type": "bar",
  "data": {
    "labels": ["Billing", "Onboarding", "Integrations", "Data exports"],
    "datasets": [
      {
        "label": "Open tickets",
        "data": [18, 27, 12, 9]
      }
    ]
  },
  "options": {
    "indexAxis": "y"
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Billing%22%2C%22Onboarding%22%2C%22Integrations%22%2C%22Data%20exports%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Open%20tickets%22%2C%22data%22%3A%5B18%2C27%2C12%2C9%5D%7D%5D%7D%2C%22options%22%3A%7B%22indexAxis%22%3A%22y%22%7D%7D

Stacked bar

Datasets piled on top of each other with stacked on both axes.

Stacked bar chart of orders per week, split into web, app and phone

The config, bar, stacked

{
  "type": "bar",
  "data": {
    "labels": ["W1", "W2", "W3", "W4", "W5", "W6"],
    "datasets": [
      {
        "label": "Web",
        "data": [120, 135, 128, 150, 162, 171]
      },
      {
        "label": "App",
        "data": [60, 72, 80, 85, 97, 104]
      },
      {
        "label": "Phone",
        "data": [20, 18, 22, 19, 17, 21]
      }
    ]
  },
  "options": {
    "scales": {
      "x": {
        "stacked": true
      },
      "y": {
        "stacked": true
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22W1%22%2C%22W2%22%2C%22W3%22%2C%22W4%22%2C%22W5%22%2C%22W6%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Web%22%2C%22data%22%3A%5B120%2C135%2C128%2C150%2C162%2C171%5D%7D%2C%7B%22label%22%3A%22App%22%2C%22data%22%3A%5B60%2C72%2C80%2C85%2C97%2C104%5D%7D%2C%7B%22label%22%3A%22Phone%22%2C%22data%22%3A%5B20%2C18%2C22%2C19%2C17%2C21%5D%7D%5D%7D%2C%22options%22%3A%7B%22scales%22%3A%7B%22x%22%3A%7B%22stacked%22%3Atrue%7D%2C%22y%22%3A%7B%22stacked%22%3Atrue%7D%7D%7D%7D

Mixed bar and line

A dataset with its own type draws as a line; a lower order puts it on top of the bars.

Bar chart of monthly revenue with a line for the target over the bars

The config, bar and line

{
  "type": "bar",
  "data": {
    "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
    "datasets": [
      {
        "label": "Revenue",
        "data": [42, 48, 45, 53, 58, 61],
        "order": 1
      },
      {
        "type": "line",
        "label": "Target",
        "data": [40, 44, 48, 52, 56, 60],
        "order": 0
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Jan%22%2C%22Feb%22%2C%22Mar%22%2C%22Apr%22%2C%22May%22%2C%22Jun%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Revenue%22%2C%22data%22%3A%5B42%2C48%2C45%2C53%2C58%2C61%5D%2C%22order%22%3A1%7D%2C%7B%22type%22%3A%22line%22%2C%22label%22%3A%22Target%22%2C%22data%22%3A%5B40%2C44%2C48%2C52%2C56%2C60%5D%2C%22order%22%3A0%7D%5D%7D%7D

Line and area charts

Show how a number moves over an ordered axis. An area chart is a line with fill.

Area

A line chart with fill true shades the area under it.

Area chart of weekly active users over eight weeks

The config, line, fill

{
  "type": "line",
  "data": {
    "labels": ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8"],
    "datasets": [
      {
        "label": "Active users",
        "data": [310, 355, 340, 420, 465, 450, 520, 580],
        "fill": true
      }
    ]
  },
  "options": {
    "scales": {
      "y": {
        "beginAtZero": true
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22line%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22W1%22%2C%22W2%22%2C%22W3%22%2C%22W4%22%2C%22W5%22%2C%22W6%22%2C%22W7%22%2C%22W8%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Active%20users%22%2C%22data%22%3A%5B310%2C355%2C340%2C420%2C465%2C450%2C520%2C580%5D%2C%22fill%22%3Atrue%7D%5D%7D%2C%22options%22%3A%7B%22scales%22%3A%7B%22y%22%3A%7B%22beginAtZero%22%3Atrue%7D%7D%7D%7D

Line

A plain Chart.js config, with no preset. The default theme does the rest.

Line chart of API requests per day over two weeks, with two series, web and mobile

The config, line

{
  "type": "line",
  "data": {
    "labels": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"],
    "datasets": [
      {
        "label": "Web",
        "data": [320, 340, 310, 380, 410, 395, 430, 450, 420, 470, 500, 490, 520, 560]
      },
      {
        "label": "Mobile",
        "data": [180, 190, 210, 205, 230, 260, 250, 275, 300, 310, 305, 340, 360, 390]
      }
    ]
  },
  "options": {
    "plugins": {
      "title": {
        "display": true,
        "text": "Requests per day"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22line%22%2C%22data%22%3A%7B%22labels%22%3A%5B%221%22%2C%222%22%2C%223%22%2C%224%22%2C%225%22%2C%226%22%2C%227%22%2C%228%22%2C%229%22%2C%2210%22%2C%2211%22%2C%2212%22%2C%2213%22%2C%2214%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Web%22%2C%22data%22%3A%5B320%2C340%2C310%2C380%2C410%2C395%2C430%2C450%2C420%2C470%2C500%2C490%2C520%2C560%5D%7D%2C%7B%22label%22%3A%22Mobile%22%2C%22data%22%3A%5B180%2C190%2C210%2C205%2C230%2C260%2C250%2C275%2C300%2C310%2C305%2C340%2C360%2C390%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22Requests%20per%20day%22%7D%7D%7D%7D

Pie, doughnut, polar area and radar

Parts of a whole, or one profile measured on several axes.

Pie

Shares of a whole, one slice per label. Keep it to five slices or fewer.

Pie chart of visits by source: search, direct, social and email

The config, pie

{
  "type": "pie",
  "data": {
    "labels": ["Search", "Direct", "Social", "Email"],
    "datasets": [
      {
        "data": [48, 27, 15, 10]
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22pie%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Search%22%2C%22Direct%22%2C%22Social%22%2C%22Email%22%5D%2C%22datasets%22%3A%5B%7B%22data%22%3A%5B48%2C27%2C15%2C10%5D%7D%5D%7D%7D

Doughnut

A pie with a hole; the theme prints the total in the middle.

Doughnut chart of tasks by status: done, in progress and blocked

The config, doughnut

{
  "type": "doughnut",
  "data": {
    "labels": ["Done", "In progress", "Blocked"],
    "datasets": [
      {
        "data": [34, 12, 4]
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22doughnut%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Done%22%2C%22In%20progress%22%2C%22Blocked%22%5D%2C%22datasets%22%3A%5B%7B%22data%22%3A%5B34%2C12%2C4%5D%7D%5D%7D%7D

Polar area

Equal angles, with the value drawn as how far each slice reaches.

Polar area chart of rainfall in millimetres for the four seasons

The config, polarArea

{
  "type": "polarArea",
  "data": {
    "labels": ["Spring", "Summer", "Autumn", "Winter"],
    "datasets": [
      {
        "data": [65, 30, 82, 54]
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22polarArea%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Spring%22%2C%22Summer%22%2C%22Autumn%22%2C%22Winter%22%5D%2C%22datasets%22%3A%5B%7B%22data%22%3A%5B65%2C30%2C82%2C54%5D%7D%5D%7D%7D

Radar

Two profiles scored on the same five axes; tension 0 gives straight edges.

Radar chart comparing two products on speed, price, support, design and reach

The config, radar

{
  "type": "radar",
  "data": {
    "labels": ["Speed", "Price", "Support", "Design", "Reach"],
    "datasets": [
      {
        "label": "Product A",
        "data": [8, 6, 7, 9, 5],
        "tension": 0
      },
      {
        "label": "Product B",
        "data": [6, 9, 5, 6, 8],
        "tension": 0
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22radar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Speed%22%2C%22Price%22%2C%22Support%22%2C%22Design%22%2C%22Reach%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Product%20A%22%2C%22data%22%3A%5B8%2C6%2C7%2C9%2C5%5D%2C%22tension%22%3A0%7D%2C%7B%22label%22%3A%22Product%20B%22%2C%22data%22%3A%5B6%2C9%2C5%2C6%2C8%5D%2C%22tension%22%3A0%7D%5D%7D%7D

Scatter and bubble charts

Each point has its own x and y; a bubble adds a third number as its size.

Scatter

Points at x and y coordinates; pointRadius sets their size.

Scatter chart of response time in milliseconds against payload size in kilobytes

The config, scatter

{
  "type": "scatter",
  "data": {
    "datasets": [
      {
        "label": "Requests",
        "data": [
          {
            "x": 5,
            "y": 40
          },
          {
            "x": 12,
            "y": 52
          },
          {
            "x": 18,
            "y": 61
          },
          {
            "x": 25,
            "y": 70
          },
          {
            "x": 31,
            "y": 84
          },
          {
            "x": 38,
            "y": 88
          },
          {
            "x": 44,
            "y": 103
          },
          {
            "x": 52,
            "y": 117
          }
        ]
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22scatter%22%2C%22data%22%3A%7B%22datasets%22%3A%5B%7B%22label%22%3A%22Requests%22%2C%22data%22%3A%5B%7B%22x%22%3A5%2C%22y%22%3A40%7D%2C%7B%22x%22%3A12%2C%22y%22%3A52%7D%2C%7B%22x%22%3A18%2C%22y%22%3A61%7D%2C%7B%22x%22%3A25%2C%22y%22%3A70%7D%2C%7B%22x%22%3A31%2C%22y%22%3A84%7D%2C%7B%22x%22%3A38%2C%22y%22%3A88%7D%2C%7B%22x%22%3A44%2C%22y%22%3A103%7D%2C%7B%22x%22%3A52%2C%22y%22%3A117%7D%5D%7D%5D%7D%7D

Bubble

A scatter chart where r, the radius, carries a third number.

Bubble chart of accounts: seats on x, monthly revenue on y, bubble size is tickets

The config, bubble

{
  "type": "bubble",
  "data": {
    "datasets": [
      {
        "label": "Accounts",
        "data": [
          {
            "x": 5,
            "y": 120,
            "r": 6
          },
          {
            "x": 12,
            "y": 310,
            "r": 10
          },
          {
            "x": 20,
            "y": 540,
            "r": 8
          },
          {
            "x": 35,
            "y": 700,
            "r": 16
          },
          {
            "x": 48,
            "y": 960,
            "r": 12
          }
        ]
      }
    ]
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bubble%22%2C%22data%22%3A%7B%22datasets%22%3A%5B%7B%22label%22%3A%22Accounts%22%2C%22data%22%3A%5B%7B%22x%22%3A5%2C%22y%22%3A120%2C%22r%22%3A6%7D%2C%7B%22x%22%3A12%2C%22y%22%3A310%2C%22r%22%3A10%7D%2C%7B%22x%22%3A20%2C%22y%22%3A540%2C%22r%22%3A8%7D%2C%7B%22x%22%3A35%2C%22y%22%3A700%2C%22r%22%3A16%7D%2C%7B%22x%22%3A48%2C%22y%22%3A960%2C%22r%22%3A12%7D%5D%7D%5D%7D%7D

Report presets

Ready-made layouts on top of a bar, line or doughnut config: a KPI card, a ranking, a comparison, a funnel and a gauge.

KPI

One number, how it moved, and the trend behind it.

KPI card: monthly recurring revenue of $9,840, up 8.1 percent, with a sparkline of eight weeks

The config, line, preset kpi

{
  "type": "line",
  "data": {
    "labels": ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8"],
    "datasets": [
      {
        "label": "MRR",
        "data": [8200, 8650, 8400, 8900, 9100, 9350, 9100, 9840]
      }
    ]
  },
  "options": {
    "plugins": {
      "title": {
        "display": true,
        "text": "MRR"
      },
      "chartpng": {
        "preset": "kpi",
        "previous": 9100,
        "prefix": "$"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22line%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22W1%22%2C%22W2%22%2C%22W3%22%2C%22W4%22%2C%22W5%22%2C%22W6%22%2C%22W7%22%2C%22W8%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22MRR%22%2C%22data%22%3A%5B8200%2C8650%2C8400%2C8900%2C9100%2C9350%2C9100%2C9840%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22MRR%22%7D%2C%22chartpng%22%3A%7B%22preset%22%3A%22kpi%22%2C%22previous%22%3A9100%2C%22prefix%22%3A%22%24%22%7D%7D%7D%7D

Ranking

Horizontal bars from highest to lowest, the leader highlighted.

Horizontal bar chart of the share of signups by channel: organic search 38 percent, newsletter 27, referral 17, direct 12, social 6

The config, bar, preset ranking

{
  "type": "bar",
  "data": {
    "labels": ["Newsletter", "Organic search", "Direct", "Referral", "Social"],
    "datasets": [
      {
        "label": "Share of signups",
        "data": [27, 38, 12, 17, 6]
      }
    ]
  },
  "options": {
    "plugins": {
      "chartpng": {
        "preset": "ranking",
        "suffix": "%"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Newsletter%22%2C%22Organic%20search%22%2C%22Direct%22%2C%22Referral%22%2C%22Social%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22Share%20of%20signups%22%2C%22data%22%3A%5B27%2C38%2C12%2C17%2C6%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22chartpng%22%3A%7B%22preset%22%3A%22ranking%22%2C%22suffix%22%3A%22%25%22%7D%7D%7D%7D

Comparison

This week against last week, with the change on each bar.

Bar chart of orders by weekday, this week against last week, with the percentage change over each pair

The config, bar, preset comparison

{
  "type": "bar",
  "data": {
    "labels": ["Mon", "Tue", "Wed", "Thu", "Fri"],
    "datasets": [
      {
        "label": "This week",
        "data": [42, 55, 38, 61, 70]
      },
      {
        "label": "Last week",
        "data": [36, 48, 41, 52, 58]
      }
    ]
  },
  "options": {
    "plugins": {
      "title": {
        "display": true,
        "text": "Orders by weekday"
      },
      "chartpng": {
        "preset": "comparison"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Mon%22%2C%22Tue%22%2C%22Wed%22%2C%22Thu%22%2C%22Fri%22%5D%2C%22datasets%22%3A%5B%7B%22label%22%3A%22This%20week%22%2C%22data%22%3A%5B42%2C55%2C38%2C61%2C70%5D%7D%2C%7B%22label%22%3A%22Last%20week%22%2C%22data%22%3A%5B36%2C48%2C41%2C52%2C58%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22title%22%3A%7B%22display%22%3Atrue%2C%22text%22%3A%22Orders%20by%20weekday%22%7D%2C%22chartpng%22%3A%7B%22preset%22%3A%22comparison%22%7D%7D%7D%7D

Funnel

Stages from top to bottom, with the share of the stage before.

Funnel chart: 12,400 visitors, 3,100 signups (25 percent), 930 trials (30 percent), 214 paying customers (23 percent)

The config, bar, preset funnel

{
  "type": "bar",
  "data": {
    "labels": ["Visitors", "Signups", "Trials", "Paying"],
    "datasets": [
      {
        "data": [12400, 3100, 930, 214]
      }
    ]
  },
  "options": {
    "plugins": {
      "chartpng": {
        "preset": "funnel"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22bar%22%2C%22data%22%3A%7B%22labels%22%3A%5B%22Visitors%22%2C%22Signups%22%2C%22Trials%22%2C%22Paying%22%5D%2C%22datasets%22%3A%5B%7B%22data%22%3A%5B12400%2C3100%2C930%2C214%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22chartpng%22%3A%7B%22preset%22%3A%22funnel%22%7D%7D%7D%7D

Gauge

A value against its goal, with the number big in the middle.

Half-ring gauge: $37,250 of a $50,000 goal, 74.5 percent filled

The config, doughnut, preset gauge

{
  "type": "doughnut",
  "data": {
    "datasets": [
      {
        "data": [37250]
      }
    ]
  },
  "options": {
    "plugins": {
      "chartpng": {
        "preset": "gauge",
        "max": 50000,
        "prefix": "$"
      }
    }
  }
}

The URL

https://chartpng.dev/chart?w=480&h=280&dpr=2&c=%7B%22type%22%3A%22doughnut%22%2C%22data%22%3A%7B%22datasets%22%3A%5B%7B%22data%22%3A%5B37250%5D%7D%5D%7D%2C%22options%22%3A%7B%22plugins%22%3A%7B%22chartpng%22%3A%7B%22preset%22%3A%22gauge%22%2C%22max%22%3A50000%2C%22prefix%22%3A%22%24%22%7D%7D%7D%7D

What the engine does not draw

Change the title, the legend, the axes, the colours or the size with the option reference. Every parameter of /chart is in the API docs, and the chart maker turns a pasted table into one of these charts.