Published
Edited
Nov 11, 2020
2 forks
9 stars
Insert cell
md`# UpSet Observable Example`
Insert cell
import {
extractSets,
UpSetJSElement,
generateIntersections
} from '@sgratzl/upset-js'
Insert cell
Insert cell
sets = extractSets(data)
Insert cell
intersections = generateIntersections(sets)
Insert cell
viewof selection = UpSetJSElement(sets, intersections)
Insert cell
selection ? selection.elems.map(d => d.name) : 'None'
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more