Pie Chart Maker

Give each category a number and get a pie chart with percentages worked out and a legend built for you.

Data (CSV or JSON)
Pie chart
Runs locally in your browser

About the Pie Chart Maker

Percentages are calculated for you: the tool adds every value into a total, gives each slice an angle equal to its share, and prints the share inside slices that are wide enough to hold text. Slices under five percent are left unlabelled to avoid a tangle of overlapping numbers, but they still appear in the legend on the right with both the raw figure and the percentage. By default the slices are ordered largest first, which is how a reader scans a pie; switch to As entered when your categories have a natural sequence such as survey answers from Strongly agree to Strongly disagree.

Values have to be zero or greater, since a slice cannot have a negative angle, and an input where everything is zero is reported as an error rather than drawn as an empty circle. A single category is drawn as one full circle instead of a hairline-split disc. Text in the labels is escaped before it reaches the markup, so a brand name with an ampersand or angle bracket renders as typed.

A pie works best with six or fewer categories that genuinely sum to one whole, such as traffic by browser or budget by department. Once you pass eight slices, ranking the same numbers in the Bar Graph Maker is far easier to read. For the same proportions with a total in the middle, use the Doughnut Chart Maker, and to work out a single share on its own try the Percentage Calculator.

How to use

  1. Paste one category,amount row per line. Raw counts are fine, no need to convert to percentages.
  2. Choose whether slices carry the percentage, the raw value or no label at all.
  3. Keep Largest first for a ranking, or switch to As entered to preserve your own order.
  4. Save the chart with Download, which writes chart.svg.

Common questions

Do I have to convert my numbers to percentages first?
No. Paste the raw counts and each share is worked out from the total for you.
Why is one of my slices missing a label?
Slices below five percent are too narrow for readable text, so their figures appear only in the legend.
Can a pie chart show negative values?
No, and the tool says so rather than guessing. Negative and positive numbers together belong on a bar graph.
How do I change the slice colours?
The palette is fixed for consistency, but the download is editable SVG, so any vector editor lets you recolour a slice in seconds.