Unlisted
Edited
Jun 20, 2023
1 fork
Insert cell
Insert cell
Plot.plot({
inset: 10,
grid: true,
color: {
type: "ordinal",
scheme: "cool",
legend: true
},
marks: [
Plot.dot(cars, {x: "power (hp)", y: "economy (mpg)", fill: "cylinders"}),
Plot.hull(cars, {x: "power (hp)", y: "economy (mpg)", stroke: "cylinders"}),
Plot.dot(cars, Plot.groupZ({x: "median", y: "median"}, {x: "power (hp)", y: "economy (mpg)", stroke: "cylinders", r: 5, tip: true})),
// Plot.tip(cars, Plot.groupZ({x: "median", y: "median"}, {x: "power (hp)", y: "economy (mpg)", stroke: "cylinders"})),
]
})
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