Pie Chart Generator
Free online pie chart generator. Create pie/donut charts from data. Visualize data easily.
| Label | Value | % |
|---|---|---|
| Red | 30 | 30.0% |
| Blue | 25 | 25.0% |
| Green | 20 | 20.0% |
| Yellow | 15 | 15.0% |
| Orange | 10 | 10.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
- Bar Chart Generator — usually the better choice when you have categories to compare rather than parts of a whole.
- Line Chart Generator — for anything measured over time.
- Histogram Generator — the distribution behind a pie chart's slices.
- Box Plot Generator — spread, quartiles and outliers for one or more datasets.
- Scatter Plot Generator — the relationship between two variables.
- Data to Chart — choose the chart type from your data rather than by hand.
- Chart Data Table — turn a chart back into a tidy table.
- Radar Chart Generator — compare several axes at once.
The chart is drawn on a canvas in your browser, so nothing is uploaded and it works offline.