Omniscope Custom Views › beeswarm

Beeswarm

Every item as its own dot, none hidden behind another. The shape of a distribution, without losing the individual stores, people or orders that make it.

Line and scatter

Open the demo in Omniscope Download demo.ioz Sample data: stores.csv Source on GitHub

Every item as its own dot, none hidden behind another. The shape of a distribution, without losing the individual stores, people or orders that make it.

Live: sales growth for 160 invented stores, one dot each, coloured by region. Hover a dot for its figures; click it to select the store.

The problem it solves

A histogram shows the shape of a distribution but hides the items in its bars. A strip of dots or a scatter plot keeps the items, but where values are close the dots pile up and the crowd looks smaller than it is.

A beeswarm pushes the dots aside until none overlap, so the width of the swarm shows where the values gather and every dot can still be hovered and clicked. In the illustrative chain above (invented figures), most stores grew between -4% and 8%, with a few outliers at each end; colour shows that the South sits further right. With customer score on the vertical axis it becomes a scatter plot where no store is hidden:

Live: sales growth against customer score, coloured by store format. Dots near the same point are pushed apart instead of hiding each other.

Where it earns its place

Omniscope's Scatter view and the Distribution view in this gallery cover nearby ground: the Scatter view lets close points overlap, and the Distribution view summarises the values as a histogram. Use the beeswarm when there are tens to hundreds of items and each one matters.

The examples below are illustrative.

Team One dot per Position Colour
Retail Store Sales growth Region, format
HR Employee Salary Department, grade
Operations Order Delivery time Carrier
Education Student Score Class

How to use it in Omniscope

  1. Bring the data into a workflow and connect it to a Report block.
  2. Add a view and choose Beeswarm.
  3. Set Split to the item, for example Store, and X to its value, for example the sum of Sales growth (%).
  4. Optionally set Y to a second measure, Colour to a category with the Singleton function, and Tooltip.
  5. Click a dot to select its item in the rest of the report.

Why do this in Omniscope

Data and options

An item field and one or two numeric fields; up to 1,000 dots.

Option What it does
Split One dot per value
X, Y Position; either can be left empty
Colour Category colour, with a key
Tooltip First line of the tooltip
Pane X, Pane Y One chart per value

Tested

Mock harness: one dot per store, the colour key, axis titles, the tooltip's figures, selecting a store and a histogram range, clearing by clicking the dot again and by clicking away, filtering to one region (colours unchanged), a 260 by 170 pane (smaller dots), 1,000 stores with two measures, empty data and no Split grouping.

Selecting a store
Selecting a store

Reference

Fields it reads

NameTypeWhat it does
ColourMEASUREColours the dots by category: for example Region with the Singleton function, which gives each dot its one Region
Pane XGROUPINGOne chart per value, side by side
Pane YGROUPINGOne chart per value, one above the other
SplitGROUPINGOne dot per value of this grouping, for example per Store
TooltipMEASUREText shown first in a dot's tooltip, for example a name field with the Singleton function. If empty, the Split value is shown
XMEASUREPosition along the horizontal axis, for example the sum of Sales growth. If empty, the dots are packed around the centre
YMEASUREPosition along the vertical axis. If empty, the dots are packed around the middle line

Third-party libraries