Unlisted
Edited
Nov 1, 2024
Insert cell
Insert cell
filteredDiamonds = diamonds.filter(d =>
(d.color === 'D' || d.color === 'E' || d.color === 'F') &&
(d.clarity === 'I1' || d.clarity === 'IF' || d.clarity === 'SI1')
)
Insert cell
Insert cell
Plot.plot({
title: "Boxplot",
marks: [
Plot.boxY(filteredDiamonds, {
x: "cut",
y: "depth",
fill: "clarity",
fx: "color",
}),
Plot.axisX({tickRotate: -45})
],
grid: true,
color: {
legend: true
}
})


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