Public
Edited
Aug 20, 2024
4 forks
3 stars
Insert cell
Insert cell
Plot.plot({
marginLeft: 60,
y: {
grid: true,
label: "↑ Price"
},
fx: {
interval: 0.5,
label: "Carats →",
labelAnchor: "right",
tickFormat: (x) => x.toFixed(1)
},
marks: [
Plot.ruleY([0]),
Plot.boxY(diamonds, {fx: "carat", y: "price"})
]
})
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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