Format Code Now
/

Doughnut Chart Maker

FV-52

Paste names and amounts and get a doughnut chart, a pie chart with a hole, with the total written in the middle. Download it as SVG or PNG.

Runs in your browser. Nothing is uploaded.

Data (CSV or tab)

Doughnut chart

Hours this week: Coding 45%, Meetings 17.5%, Code review 12.5%, Docs 10%, Support 15%.

How to use it

  1. Paste two columns with a header row: segment names, then amounts.
  2. Pick the hole size and whether the total shows in the middle.
  3. Choose percent, value or both for the ring labels, and the legend position.
  4. Save the doughnut chart as PNG or SVG, or copy the SVG code.

When a doughnut beats a pie

A doughnut chart shows the same parts of a whole as a pie chart, but the empty center gives room for one headline number, here the total of your values. Readers judge a doughnut by the length of each arc rather than the angle at the center. Keep it to a few segments: hours by task, budget by category, or tickets by status. For comparing many items, or values that can be negative, use a bar graph.

The total in the middle

The middle shows the sum of your values, with as many decimals as your most precise value, so 4.5 plus 7.25 shows 11.75 rather than a long float. Thousands get commas. Turn it off with Total in the middle if you want an empty center, for example to place your own logo or label in an editor afterwards.

Hole size and labels

Small, Medium and Large set the hole to 45, 55 or 68 percent of the outer radius. A larger hole gives the total more room but leaves a thinner ring, so fewer labels fit; when a segment is too narrow its label is left off and the legend still lists its percent. Ring labels are black or white, picked for contrast against each segment color.

Error messages and what to do

MessageWhat it meansFix
Row 2, column "Hours": doughnut charts cannot show negative values (-3).A segment cannot be negative.Correct or remove the value, or use a bar graph for data with negatives.
Row 2, column "Hours": "6h" is not a number.Units or other text are mixed into the number.Keep only the number in the cell and put the unit in the header, such as Hours.

Questions people ask

Is a doughnut chart the same as a donut chart?

Yes. Doughnut and donut are two spellings of the same chart: a pie chart with the center cut out, often called a ring chart too. This tool draws it from the same two columns of data a pie chart uses.

How do I put the total in the middle of a doughnut chart?

It is on by default. The tool adds up the second column and writes the result in the center with the word Total below it. Untick Total in the middle to leave the center empty.

How big should the hole be?

Medium, 55 percent of the radius, is a good default. Choose Large when the center number matters most and you have few segments, and Small when you have more segments and want room for their labels.

Can a doughnut chart have negative values?

No. A segment is a share of the total and cannot be less than nothing, so the tool stops with the row that holds the negative number. Zero values are allowed and appear in the legend without a segment.

How do I get a transparent background?

Set Background to Transparent and press Download PNG or Download SVG. The text stays dark, so place the chart on a light background. Choose Dark for a version with light text on a dark background.

About this tool

Paste CSV or tab-separated data (for example straight from a spreadsheet) with a header row first. The first column names the segments and the second holds the numbers; other columns are ignored. Segment sizes are each value's share of the total, drawn clockwise from twelve o'clock, and the middle shows the total with as many decimals as your most precise value. Negative values are refused and zero values get no segment. Percentages are rounded to one decimal. Labels are left off segments too narrow to hold them; the legend always shows every percent. Up to 60 segments.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.