Public
Edited
Aug 14, 2024
Paused
Comments locked
Insert cell
Insert cell
Insert cell
Insert cell
TLDs
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
synopsis = query.map((row) => ({ Type: row[0], Count: row[1].length }))
Insert cell
query = d3.groups(records, (row) => row.Type)
Insert cell
types = [
...new Set(records.map((row) => row.Type).sort((a, b) => a.localeCompare(b)))
]
Insert cell
pivot = query.map((item) => ({
Type: item[0],
TLDs: item[1].map(({ Type, ...rest }) => /* drop Type key */ rest)
}))
Insert cell
pivot.slice().sort((a, b) => a.Type.localeCompare(b.Type))
Insert cell
pivot.slice().sort((a, b) => b.TLDs.length - a.TLDs.length)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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