# UpSet plot

> Use an UpSet plot to count every overlap between more than three sets, as bars over a dot matrix, where a Venn diagram would tangle.

- Data type: Several measures per item (`relationships`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`relationships`)
- Example: **Three in ten known exoplanets have been confirmed by more than one method** (6,473 confirmed exoplanets by the detection methods that have seen each one; the 12 largest combinations)
- How to read it: Each column is one exact mix of methods: its dots show which, its bar how many planets; bars on the left count all planets each method has seen.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- 4 to 10 sets whose overlaps you want to count
- the biggest and the rarest combinations both matter
- a Venn or Euler diagram would need more than three circles

## Avoid it when
- two or three sets (an Euler diagram reads faster)
- the audience has never seen one and has no time to learn it
- you need the members, not the counts

## Fields (data.json)
- `total` (number, unit "planets", format count): confirmed planets in the archive
- `sets` (text): each set with its size (name, size); the six largest get rows, the rest fold into one row named by hints.other
- `combos` (text): each exact combination of sets with its count (sets, count)

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a column or bar to read that combination
- hover a method to light every column that includes it
- Motion: Bars grow up from the matrix one column after another, and the columns' dots fade in with them.
- Sound: A pop on hover, higher for combinations of more methods. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "upset-plot",
  "title": "Three in ten known exoplanets have been confirmed by more than one method",
  "subtitle": "6,473 confirmed exoplanets by the detection methods that have seen each one; the 12 largest combinations",
  "data": "/charts/upset-plot.data.json"
}
```

## Source
Planetary Systems Composite Parameters (detection flags), NASA Exoplanet Archive, NASA Exoplanet Science Institute (Caltech/IPAC) (Public (NASA; acknowledgement requested)), retrieved 2026-12-01: https://exoplanetarchive.ipac.caltech.edu/docs/API_PS_columns.html

Note: Flags mark every method with a published detection of the planet, not only the discovery method. Methods beyond the six largest (brightness modulation, eclipse timing, pulsar timing, disk kinematics) are folded into Other methods; 24 planets with no flag set are left out.

Inspired by: [UpSet: Visualization of Intersecting Sets](https://upset.app/), Alexander Lex, Nils Gehlenborg, Hendrik Strobelt, Romain Vuillemot, Hanspeter Pfister (linked, not copied).

Live: /charts/upset-plot · Manifest: /charts/upset-plot.json · Tags: upset, set overlaps, intersections, venn alternative, space, exoplanets, astronomy
