Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeA donut chart shows parts of a whole as segments of a ring. It suits device share when there are about four categories and one clearly leads. Use a sorted bar chart or table when values are close, categories are many or you compare periods, and give every ring direct values and a text alternative.
What you will learn
- Research found donuts read about as accurately as pies, so choose between them on layout
- Keep to about four slices; UK guidance caps pies at five and ONS advises no more than six
- Period changes vanish in rings: a 1.9-point gain is under 7 degrees of arc
Donut, pie or bar: which should show device share?
A donut chart is a pie chart with the center removed: each segment of the ring shows one part of a whole. It works when there are only a few parts, they add up to a meaningful total and the reader needs a rough sense of share. A bar chart works better when values are close, when there are many categories or when you compare periods.
| Situation | Use | Why |
|---|---|---|
| Three or four parts, one clearly dominant | Donut or pie | Share of a whole is visible at once |
| Parts within a few points of each other | Sorted bar chart | Ends on a common baseline separate close values |
| Five or more categories | Bar chart | Thin slices cannot be labeled or compared |
| This month against last month | Table or paired bars | Two rings are compared segment by segment, from memory |
| Answers that can total more than the whole | Bar chart | A ring implies parts that add up |
| One part of one whole, such as "mobile is 62%" | A large number, or a two-segment donut | The sentence is the chart |
What does the sample device data look like?
Sample data: 30 days of sessions on a city museum's ticket site, with the previous 30 days for comparison.
| Device | Sessions | Share | Angle in a donut | Previous sessions | Previous share |
|---|---|---|---|---|---|
| Mobile | 6,240 | 62.4% | 224.6° | 5,890 | 60.5% |
| Desktop | 2,880 | 28.8% | 103.7° | 3,000 | 30.8% |
| Tablet | 576 | 5.8% | 20.7° | 560 | 5.7% |
| Other or unknown | 304 | 3.0% | 10.9° | 290 | 3.0% |
| Total | 10,000 | 100% | 360° | 9,740 | 100% |
This is close to a good donut case: four categories, one of them far larger than the rest. "Most ticket traffic is on phones" is readable in a second. Two things already strain it. Tablet and other are thin slivers that need labels outside the ring, and the change from last period is nearly invisible.
Keep the "other or unknown" slice. Dropping it makes the remaining parts look as if they were the whole; UK government chart guidance says categories can be combined but should not be removed from the whole.
Does the hole make a donut harder to read than a pie?
The intuitive worry is that a donut removes the central angle, which seems to be what a pie is read by. Research suggests the angle matters less than that. Skau and Kosara's 2016 study, published in Computer Graphics Forum, varied the inner radius from a filled pie to a thin outline. Its abstract reports that angle was the least important visual cue for both charts and that donuts were read as accurately as traditional pies.
So choose between pie and donut on layout, not accuracy:
- A donut leaves a place for the total in the middle ("10,000 sessions"), which stops readers from taking shares for counts.
- A pie gives thin slices a little more area.
- A very thin ring makes adjacent colors harder to tell apart, especially at small sizes.
Neither is a precise instrument. Heer and Bostock's replication of classic perception experiments found angle judgments significantly worse than judgments of position, which is what bar charts rely on.
Where does a bar chart beat the donut?
Look at the change in the sample. Mobile rose from 60.5% to 62.4%, a gain of 1.9 points. In a donut that is 6.9° more arc, about 10 pixels on a ring of 80-pixel radius, on a segment more than 300 pixels long that also starts and ends in a slightly different place. Placed side by side, the two rings look identical.
Desktop fell 2.0 points and 120 sessions. Tablet's share did not move (5.7% to 5.8%) although its sessions rose by 16. A table says all of this exactly:
| Device | Change in sessions | Change in share (points) |
|---|---|---|
| Mobile | +350 (+5.9%) | +1.9 |
| Desktop | −120 (−4.0%) | −2.0 |
| Tablet | +16 (+2.9%) | 0.0 |
| Other or unknown | +14 (+4.8%) | +0.1 |
If the visual matters, draw paired horizontal bars, one pair per device, sorted by current share, with both starting at zero. The reader compares two ends that sit next to each other. The broader choice between trend and comparison charts for traffic is in website traffic graphs.
Device share of 10,000 sessions
last 30 daysHow many slices should a donut chart have?
Public sector guidance is a useful anchor because it was written for general readers:
- The UK Government Analysis Function says pie charts should only be used with five categories or fewer, and suggests value labels on pies of four or fewer.
- The Office for National Statistics service manual advises three or four categories ideally and avoiding more than six; small ones can be merged into "other".
Both are written about pies, and the ONS guidance treats doughnut charts the same way. A working rule that satisfies both:
- Up to four slices, including "other".
- One slice clearly largest.
- No two slices you need to rank within about five points of each other.
- Fails any of these? Use a sorted bar chart.
The five-point threshold is our rule of thumb, not part of either guide. Browser share with eight browsers fails rule 1 immediately. The sample's device split passes all three, since the two smallest (5.8% and 3.0%) rarely need ranking.
| Check | Pass | Fail |
|---|---|---|
| Number of slices | Four or fewer, including other | Five or more |
| Dominant part | One clearly largest | All similar |
| Close values to rank | None within about 5 points | Two near-equal slices |
| Comparison over time | Single period | This period against last |
| Whole | Parts add to the total | Overlapping answers or parts removed |
One fail is enough to switch to a sorted bar chart or table. The 5-point threshold is a rule of thumb.
How do you make a donut chart accessible?
A ring that depends on color and shape excludes readers who cannot see either. Check these:
| Requirement | What to do | Source |
|---|---|---|
| Color is not the only cue | Label each segment with name and value, or use a legend that repeats values | WCAG 2.2, 1.4.1 Use of Color |
| Segments can be told apart | At least 3:1 contrast against adjacent colors, or a gap or border; or labels that carry the same information | WCAG 2.2, 1.4.11 Non-text Contrast |
| A text alternative | A short description naming the chart, plus a longer one with the values and the main point | W3C images tutorial, complex images |
| The data is reachable | A table next to the chart or linked from it | Our recommendation |
A pattern that works in HTML:
<figure>
<img src="devices.svg"
alt="Donut chart of ticket-site sessions by device; values in the table below">
<figcaption>
Phones brought 62.4% of 10,000 sessions in the last 30 days.
<table>
<tr><th>Device</th><th>Sessions</th><th>Share</th></tr>
<tr><td>Mobile</td><td>6,240</td><td>62.4%</td></tr>
<tr><td>Desktop</td><td>2,880</td><td>28.8%</td></tr>
<tr><td>Tablet</td><td>576</td><td>5.8%</td></tr>
<tr><td>Other or unknown</td><td>304</td><td>3.0%</td></tr>
</table>
</figcaption>
</figure>
The caption states the conclusion, so a reader who skips the picture still gets it.
Which design details change how a donut reads?
- Start at 12 o'clock and go clockwise, largest first, with "other" last, as the ONS guidance orders pie segments.
- Put the total and unit in the center: sessions, visitors or orders. Device share by visitors and by sessions are different charts.
- Label directly beside segments; use leader lines for slivers.
- Keep color meaning stable across reports, so mobile is the same hue every month.
- Skip 3D and exploded slices, which distort sizes.
- Check for bots. A burst of automated traffic can arrive labeled as desktop and quietly change the split.
Device share is a means, not the end. If phones bring 62.4% of sessions, the next number is the ticket purchase rate on phones against desktop. A dashboard that puts both side by side is more useful than a bigger ring; see dashboard design principles.
Where do you see device share in TapCub?
The museum's question, "what are visitors using, and did it change?", is covered by the audience report.

- Open Web analytics › Audience and look at device type. The demo screenshot below shows it as a ring with the unique-visitor total in the middle and a list with counts and shares under it. Read exact values from the list.
- For the change, read the list for this period, switch the date range to the previous one and put both sets of numbers in a table. To see how much each device contributed to a traffic change, open All-platform analytics › Operations › AI Assistant, choose Why did it change and pick device as the dimension.
- To see whether mobile visitors reach different pages, go to Web analytics › Overview, switch the devices card to device type and click Mobile; the page list on the same screen is then filtered to it. Switching to another web report drops every filter except hostname.
- Keep automated traffic out of the split: new projects identify bots and count them separately under Web analytics › Bots.
- For apps, App analytics › Quality & attribution › Devices shows a ring of the top 8 values by active users, by model, brand, OS version and other fields, with a table of up to 50 rows. Eight segments is past the four-slice rule above, so use the table for anything you need to compare.
Other chart types and when to use them are in data visualization.
FAQ
What is the difference between a donut chart and a pie chart?
A donut chart is a pie chart with a hole in the middle. Both show parts of a whole as segments. The donut leaves room for a total in the center. Research by Skau and Kosara found the two read with similar accuracy.
When should you not use a donut chart?
Avoid it when there are many categories, when values are close, when the parts do not add up to a meaningful total, when responses can overlap, or when you compare periods or groups. A sorted bar chart or table handles these better.
How many categories can a donut chart show?
Aim for four or fewer. UK government guidance caps pie charts at five categories, and the Office for National Statistics suggests three or four and no more than six. Merge small ones into an "other" slice rather than deleting them.
Are donut charts accessible?
They can be, with direct labels or values, sufficient contrast or clear separation between segments, a text alternative that states the numbers and a data table. A ring explained only by a color legend leaves out many readers.
What should go in the center of a donut chart?
The total and its unit, such as 10,000 sessions, or the single share the chart is about. Keep it to one number and a short label. The center should not repeat a title or hold decoration.
Sources
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Experience Specialist
Explores usability, user journeys, and feature adoption through practical examples of onboarding and everyday product use.



