Public
Edited
Oct 4, 2022
1 star
Insert cell
Insert cell
Insert cell
diamonds
Insert cell
viewof rawTable = Inputs.table(diamonds)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataDimensions = tidy(
diamonds,
pivotLonger({cols: ["x", "y", "z"], namesTo: "dimType", valuesTo: "dimension"})
)
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
Insert cell
dataRatios = tidy(
diamonds,
mutate({ratioXY: d => d.x/d.y})
)
Insert cell
Insert cell
Insert cell
weirdShapes = tidy(
dataRatios,
filter(d => d.ratioXY > 1.1 | d.ratioXY < 0.9)
)
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