Insert cell
Insert cell
Insert cell
Insert cell
import { cars } from "12db2a67172fc036"
Insert cell
viewof table = Inputs.table(cars)
Insert cell
Plot.plot({
color: {
legend: true
},
x: {
label: "Horsepower →"
},
y: {
label: " ↑0-60mph in sec",
grid: true
},
marks: [
Plot.dot(cars, {
x: "power (hp)",
y: "0-60 mph (s)",
r: "power (hp)",
fill: "power (hp)"
}),
Plot.text(cars, {
x: "power (hp)",
y: "0-60 mph (s)",
text: (d) => (d["power (hp)"] > 200 ? d["name"] : ""),
fontSize: 10
}),
Plot.linearRegressionY(cars, {
x: "power (hp)",
y: "0-60 mph (s)",
stroke: "red",
ci: 0.95
})
]
})
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