Unlisted
Edited
Oct 19, 2022
Insert cell
Insert cell
data = FileAttachment("penguins.csv").csv({typed: true})
Insert cell
plot = Plot.plot({
inset: 8,
grid: true,
color: {
legend: "ramp",
label: "Sex",
width: 400,
},
marks: [
Plot.dot(data, {x: "flipper_length_mm", y: "body_mass_g", stroke: "sex"})
]
})
Insert cell
plot.legend("color", {legend: "ramp", label: "Sex", width: 400})
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