Chart generator

Make a clean SVG bar, line, area, pie or donut chart from labels and values, with axes, legend and title.

Input

Chart type. hbar is a horizontal bar chart.
One label per value: the categories or points along the axis. Numbered 1, 2, 3 when left out.
The numbers for a single series.
Several series for bar, hbar, line or area charts: a list of {"name": ..., "values": [...]}, up to 8.
Heading shown above the chart.
Width in pixels.
Height in pixels.
Light or dark colours.
Your own series colours in order, as hex or basic names. The built-in palette fills any gaps.
Print each value at the end of its bar (single-series bar charts, when there is room).

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/chart \
  -H 'Content-Type: application/json' \
  -d '{"input":{"labels":["Mon","Tue","Wed","Thu","Fri"],"values":[12,19,7,15,22],"title":"Orders this week"}}'
import json, urllib.request

body = {'input': {'labels': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], 'values': [12, 19, 7, 15, 22], 'title': 'Orders this week'}}
request = urllib.request.Request("https://setget.net/v1/tools/chart", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/chart", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"labels":["Mon","Tue","Wed","Thu","Fri"],"values":[12,19,7,15,22],"title":"Orders this week"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "chart",
  "input": {
    "labels": [
      "Mon",
      "Tue",
      "Wed",
      "Thu",
      "Fri"
    ],
    "values": [
      12,
      19,
      7,
      15,
      22
    ],
    "title": "Orders this week"
  }
}
{
  "input": {
    "labels": [
      "Mon",
      "Tue",
      "Wed",
      "Thu",
      "Fri"
    ],
    "values": [
      12,
      19,
      7,
      15,
      22
    ],
    "title": "Orders this week"
  }
}

Endpoint: POST /v1/tools/chart. Over MCP: run_tool with slug: "chart". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
type string no Chart type. hbar is a horizontal bar chart. One of: bar, hbar, line, area, pie, donut. Default: "bar".
labels array no One label per value: the categories or points along the axis. Numbered 1, 2, 3 when left out.
values array no The numbers for a single series.
series json no Several series for bar, hbar, line or area charts: a list of {"name": ..., "values": [...]}, up to 8.
title string no Heading shown above the chart.
width integer no Width in pixels. Default: 720. From 240 to 2000.
height integer no Height in pixels. Default: 420. From 160 to 2000.
theme string no Light or dark colours. One of: light, dark. Default: "light".
colours array no Your own series colours in order, as hex or basic names. The built-in palette fills any gaps.
show_values boolean no Print each value at the end of its bar (single-series bar charts, when there is room). Default: false.

Examples

A bar chart

Input
{
  "labels": [
    "Mon",
    "Tue",
    "Wed",
    "Thu",
    "Fri"
  ],
  "values": [
    12,
    19,
    7,
    15,
    22
  ],
  "title": "Orders this week"
}
Result

Different every time. Press the example button above to see one.

Two lines on a dark background

Input
{
  "type": "line",
  "labels": [
    "Q1",
    "Q2",
    "Q3",
    "Q4"
  ],
  "title": "Revenue by quarter",
  "theme": "dark",
  "series": [
    {
      "name": "2024",
      "values": [
        31,
        42,
        38,
        51
      ]
    },
    {
      "name": "2025",
      "values": [
        36,
        47,
        52,
        64
      ]
    }
  ]
}
Result

Different every time. Press the example button above to see one.

A donut chart

Input
{
  "type": "donut",
  "labels": [
    "Direct",
    "Search",
    "Social",
    "Email"
  ],
  "values": [
    420,
    310,
    150,
    90
  ],
  "title": "Traffic sources"
}
Result

Different every time. Press the example button above to see one.

Questions

Why did my pie chart get an "Other" slice?
Past eight slices the colours stop being tellable apart, so the smallest slices are added together. Use a bar chart to show every item.
What happens with many labels?
Axis labels are tilted, shortened or thinned out so they never overlap. Hover over a bar or point in a browser to see its exact value.
Can I turn the SVG into a PNG?
Yes, with any SVG to PNG converter. SVG is best for web pages and documents because it stays sharp.