Beeswarm plot
A beeswarm plot visualizes individual observations along an axis, using perpendicular displacement to reduce overlap and reveal their distribution.
D3.js in Action, Third Edition
A beeswarm plot is a visualization that positions individual data points along an axis while avoiding overlap through perpendicular displacement.
- How it is used
- Shows distributions while preserving individual observations in a force-directed visualization.
- How deep it goes
- Works through D3 positioning and collision forces, simulation ticks, and the trade-off that final value positions are approximate.
- Examples
- Uses 300 normally distributed values and a separate character chart with color and size encodings.
- What you can do after
- Build it from scratch with D3 forceSimulation, forceX, forceY, and forceCollide.
Read how D3.js in Action, Third Edition explains beeswarm plot →
Outlier Detection in Python
A beeswarm plot displays individual observations as positioned dots, often using color to encode feature values or another variable.
- How it is used
- Explains how feature values contribute to outlier scores across a dataset.
- How deep it goes
- Shows per-instance dots and color-coded values but does not display the complete feature–target relationship.
- Examples
- Uses SHAP explanations on an Isolation Forest applied to an abalone dataset.
- What you can do after
- Evaluate global feature effects by reading dot positions and color patterns in a SHAP visualization.
Read how Outlier Detection in Python explains beeswarm plot →
Related concepts
- graphkind of · A graph is a mathematical structure consisting of vertices connected by edges that represent relationships or connections.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

