Public
Edited
Mar 31, 2023
1 star
Insert cell
Insert cell
Plot.plot({
height: 250,
r: { type: "pow", exponent: 1.5, range: [0, 10] }, // an exaggerated scale
marks: [
Plot.dotX(
penguins,
Plot.dodgeY({ x: "body_mass_g", fill: "black", r: "body_mass_g" })
),
Plot.textX(
penguins,
Plot.dodgeY({
x: "body_mass_g",
fill: "black",
text: (d) => d.species?.[0],
fill: "white",
r: "body_mass_g"
})
)
]
})
Insert cell
Plot.plot({
height: 320,
marks: [
Plot.dotX(penguins, Plot.dodgeY({ x: "body_mass_g", fill: "black", r: 6 })),
Plot.textX(
penguins,
Plot.dodgeY({
x: "body_mass_g",
fill: "black",
text: (d) => d.species?.[0],
fill: "white",
r: 6
})
)
]
})
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