The Util Box

Pie Chart Generator

Free online pie chart generator. Create pie/donut charts from data. Visualize data easily.

Options
Total: 100
LabelValue%
Red3030.0%
Blue2525.0%
Green2020.0%
Yellow1515.0%
Orange1010.0%

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/pie-chart-generator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Pie Chart Generator tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/pie-chart-generator -->
<a href="https://www.theutilbox.org/tools/pie-chart-generator">Pie Chart Generator by The Util Box</a>

Frequently Asked Questions about Pie Chart Generator

Pie Chart Generator — Label, Value, Chart

This pie chart generator turns a list of labels and numbers into a pie or doughnut chart drawn on a canvas. Type one label, value pair per line and the chart redraws as you type, with a percentage written inside each slice and a legend down the right-hand side.

A table of the same data sits underneath with the label, the raw value and the percentage of the total, and a copy button will put that table on your clipboard as CSV — ready to paste into a spreadsheet or a report.

How the Data Is Parsed

Each line is split on commas, and the last field on the line is taken as the value while everything before it becomes the label. That means a label can itself contain commas — Marketing, Q3, 120 reads as the label "Marketing, Q3" with the value 120.

  • A line with only one field is given the label "Item" and the value 0, which drops it from the chart entirely.
  • A value that is not a number is read as 0 and the row is discarded rather than producing an empty slice.
  • Zero and negative values are dropped, so the percentages are always calculated against the total of the rows that were actually included.
  • Blank lines are ignored, which means you can group your data with spacing or paste it straight from a spreadsheet.

Pie, Doughnut, and the Limits

The Pie and Doughnut buttons switch the shape. In doughnut mode a slider sets the hole size from 10% to 70% of the radius, which is a quick way to leave room for a figure in the middle — a total, a percentage, a label.

  • The palette holds fifteen colours and cycles through them, so a chart with more than fifteen slices reuses colours and two slices may end up the same shade.
  • The canvas is a fixed 400 pixels tall and as wide as its container. The legend is drawn in the space on the right, which means on a narrow screen the pie shrinks rather than the layout reflowing.
  • Percentages are shown inside the slices at 75% of the radius, so a slice under about 3% of the total has too little room for its label to read cleanly.
  • There is no title, no 3D effect, no exploded slice and no data labels outside the pie. It is a deliberately simple chart generator.

Related Chart Tools

The chart is drawn on a canvas in your browser, so nothing is uploaded and it works offline.