Public
Edited
Jan 4, 2024
Insert cell
Insert cell
viewof x_min = Inputs.range([2500, 6500], {value: 2500, label: "x_min"})
Insert cell
viewof x_max = Inputs.range([2500, 6500], {value: 6500, label: "x_max"});
Insert cell
Plot.plot({
grid: true,
x: {label: "Body mass (g) →", domain: [x_min, x_max]},
y: {label: "↑ Flipper length (mm)"},
symbol: {legend: true},
marks: [
Plot.dot(penguins, {x: "body_mass_g", y: "flipper_length_mm", stroke: "species", symbol: "species"})
]
})
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