Public
Edited
Mar 10
7 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
V = Plot.valueof(olympians, "sport")
Insert cell
Insert cell
G = d3.groupSort(
V,
(d) => -d.length,
(d) => d
)
Insert cell
Insert cell
T = new Set(G.length > n + 2 ? G.slice(0, n) : G)
Insert cell
Insert cell
others = ({ toString: () => `… ${G.filter((a) => !T.has(a)).length} more` })
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