Beeswarm plotEvery dot, none hidden.
Every value is a dot, and dots that would land on each other step aside. The swarm grows wide where values crowd and thin where they are rare.
- Answers How are the values spread?
- Your data values of one number per group
- Values about 20 to 300 per group
- Groups 1 to 6
- Excel and Power BI not built in
What is a beeswarm plot?
A beeswarm plot draws every value as a dot along one axis, like a strip plot, but pushes dots apart so none overlap. Where many values are close, the swarm grows wide; where they are rare, it is thin. So it shows each value and the shape at the same time.
A teacher compares the exam scores of two classes, 30 students each. Every student is a dot. Class A crowds into the 70s; Class B spreads from the 40s to the 90s.
Why use a beeswarm plot?
Because it shows every value and the shape in one picture.
- No hidden dots. Equal values sit side by side, not on top of each other.
- Shape for free. The width of the swarm works like a histogram.
- Real people. One dot per student, customer or day feels concrete.
- Outliers stand out. A lone dot at the edge is easy to see.
How does a beeswarm plot work?
Four steps turn a strip of dots into a swarm.
- Step 1 of 4One axis per groupA line for the score, one row per class.
- Step 2 of 4Dots on the lineEvery student at their score: close dots overlap.
- Step 3 of 4Push them apartA dot that would overlap moves up or down until it is free.
- Step 4 of 4Light one groupFade the other row to tell one story.
The dots only move across the axis, never along it, so each one still sits at its exact value.
What are the parts of a beeswarm plot?
Four parts, and each one has a job.
- Dotone value: here one student
- Wide partmany values close together
- Gapa stretch with no values
- Value axisthe score, shared by both rows
How do you read a beeswarm plot?
Three looks, in this order.
- Find the widest partClass A is widest in the 70s: most students scored there.
- Compare the spreadClass B runs from 45 to 98: a wider spread, a similar middle.
- Look at the endsClass B has more students below 55 and above 90.
What kinds of beeswarm plot are there?
The same two classes, three ways.
- Kind 1SwarmThe beeswarm: every dot free.
- Kind 2One group litGrey and an accent, to point at one class.
- Kind 3Box under the dotsThe shape, a small box and the dots together.
When should you use a beeswarm plot?
When each value matters and there are too many for a plain strip.
- each value is a person or a thing
- there are about 20 to 300 per group
- many values are close
- the shape and the single values both matter
- there are thousands of values (a histogram or violin)
- only the summary matters (a box plot)
- there are very few values (a strip plot)
Beeswarm or strip plot?
A beeswarm when values crowd, a strip plot when they do not.
On the strip plot, close scores pile on top of each other and the 70s look like one smudge. The beeswarm moves them apart: you can count the students and see where the class is crowded.
How do you make a beeswarm plot?
Not built into Excel or Power BI; one line in Python or R.
In Python, seaborn's swarmplot draws one from a table with a value column and a group column. In R, the ggbeeswarm package adds geom_beeswarm to ggplot2. In Power BI, use a Python or R visual, as in Python and R visuals in Power BI, or a visual from AppSource (custom visuals in Power BI).
What goes wrong with beeswarm plots?
The most common mistake, and its fix: too many dots for the space.
- up to a few hundred values per group
- smaller dots
- or a violin plot for big data
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many dots | The swarm overflows or turns to specks | A violin or histogram for big data |
| Rows too close | Swarms run into each other | More room per group |
| Reading the up-and-down as a value | It only makes room | Say only one axis is a value |
| Many colours inside one swarm | Busy and hard to read | One colour per group |
| No axis | The reader cannot place a dot | A labelled value axis |
Every chart for “How are the values spread?”
- One groupHistogramTouching bars that count how many values fall in each range.
- One groupDensity plotA smooth curve of where values bunch up.
- One groupStrip plotEvery value as a dot along one line.
- Comparing groupsBox plotThe middle half as a box, the median as a line, the rest as whiskers.
- Comparing groupsViolin plotA box plot with the shape of the values drawn around it.
- Comparing groupsRidgeline plotDensity curves stacked and overlapping, one per group.
- Comparing groupsRaincloud plotHalf a violin, a box and the dots, in one picture.
- Comparing groupsPopulation pyramidTwo histograms back to back, by age and sex.
- CumulativeCumulative distributionA rising line of the share of values at or below each point.
- CumulativePareto chartBars from biggest to smallest with a running total line.
- Fit checkQ-Q plotDots along a line when the data fits the shape you expect.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.