Pie chart generator
Turn a label,value list into an SVG pie chart with switchable palette, canvas size, slice sorting and label modes, then copy the SVG source or export SVG/PNG, all locally.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
One item per line; space, comma (ASCII or Chinese), colon, equals sign and pipe all work. Bare numbers become "Item N". Up to 24 items.
Generated chart
The SVG is generated by a pure function: same input, same picture. Nothing leaves your browser.
Enter data to build a pie chart
What this tool does
- Turn a column of shares (survey answers, traffic sources, file types) into a pie chart to sanity-check the split
- Get a vector result: the exported SVG drops straight into a web page, Figma or a document without re-screenshotting
- Build the chart locally when the data must not reach an external charting service
Example
Input
Weekly 12 Monthly 8 Quarterly 4
Output
Weekly: 12 (50.0%) Monthly: 8 (33.3%) Quarterly: 4 (16.7%)
The same input produces a 420×420 SVG with three wedges starting at the centre, labels such as "Weekly 50.0%" and a legend below.
Frequently asked questions
Which input formats work?
One "label value" per line; space, comma (ASCII or Chinese), colon, equals sign and pipe all act as separators. Bare numbers become "Item N". Up to 24 items, values must be non-negative, and a zero total is rejected.
Can it draw a donut?
No, this tool draws solid pie charts only. Use the donut chart generator on the same site when you need a hollow centre, since it exposes the hole ratio.
Why sort slices or change labels?
Sorting reorders slices by value so the extremes are obvious; the label mode switches between "label + percent", "percent only" and "no labels". Slices below 5% get no inner text so tiny wedges stay readable.
Why do the percentages not add up to 100%?
Each share is rounded to one decimal on its own (value ÷ total × 100), so printed labels may total 99.9% or 100.1%. Wedge angles use the exact ratios, so the drawing is accurate.
Is my data uploaded?
No. The chart comes from a pure function running in your browser; the page makes no network requests and stores nothing locally.
Keywords:pie chartoffline