Sample description

Pie chart example: sample sources

An illustrative pie chart of 100 samples from four sources. Compare exact shares, numbered labels, and the optional donut presentation.

Open this example in the editorStart from scratch

12341. Clinic A — 42.0%2. Clinic B — 31.0%3. Clinic C — 19.0%4. Other — 8.0%
Illustrative sample counts: Clinic A 42, Clinic B 31, Clinic C 19, and other sources 8. Illustrative data.

About this example

This pie chart describes an illustrative collection of 100 samples. Clinic A contributes 42, Clinic B 31, Clinic C 19, and other sources 8. Because the total is exactly 100, the percentages are 42.0%, 31.0%, 19.0%, and 8.0%.

The number on each slice matches a numbered category in the legend, providing a reference beyond color. Switch to a donut if that presentation suits the figure; it preserves all four source proportions.

Use this layout when each sample belongs to one source category. Avoid counting the same sample in two slices. For a denominator that produces rounded percentage totals, inspect the research-sites example.

The data

SourceSamples
Clinic A42
Clinic B31
Clinic C19
Other8

Percentages use the full category values before rounding. Open the example, replace the data with your own, and export the figure as SVG, PDF, PNG or TIFF.

More examples