ui.pie_chart
Pie chart
Parts of a whole as a pie or a donut, with a figure in the middle, labels on the slices and a click that runs Python.A donut with its total
The donut leaves room in the middle for the figure the reader looks for first.Traffic sources · September+9.1%
Organic search
Direct
Referral
Social
Email
| Category | Value | Share |
|---|---|---|
| Organic search | 19840 visits | 41% |
| Direct | 12310 visits | 26% |
| Referral | 7420 visits | 15% |
| Social | 5260 visits | 11% |
| 3370 visits | 7% |
Labels on the slices
show_labels writes each share on its slice; colors picks the theme colours, in order; show_data folds the figures and their shares under the pie.Storage used
182 GB of 250 GB
Videos
Design files
Documents
Backups
Show the dataHide the data
| Category | Value | Share |
|---|---|---|
| Videos | 94 GB | 52% |
| Design files | 41 GB | 23% |
| Documents | 29 GB | 16% |
| Backups | 18 GB | 10% |
Small multiples
Three small donuts compare better than one crowded pie.North America
Web · iOS · Android
| Category | Value | Share |
|---|---|---|
| Web | 58 % | 58% |
| iOS | 30 % | 30% |
| Android | 12 % | 12% |
Europe
Web · iOS · Android
| Category | Value | Share |
|---|---|---|
| Web | 47 % | 47% |
| iOS | 22 % | 22% |
| Android | 31 % | 31% |
Asia-Pacific
Web · iOS · Android
| Category | Value | Share |
|---|---|---|
| Web | 29 % | 29% |
| iOS | 24 % | 24% |
| Android | 47 % | 47% |
A click that runs Python
on_item_click receives the slice's label and value; the list next to it is rendered again on the server.Open tickets · click a slice
Billing
Bugs
How-to
Feature requests
| Category | Value | Share |
|---|---|---|
| Billing | 34 | 22% |
| Bugs | 58 | 37% |
| How-to | 41 | 26% |
| Feature requests | 23 | 15% |