Public
Edited
May 29, 2023
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.dot(cars, {x: d => d["power (hp)"] / d["weight (lb)"], y: "economy (mpg)",
stroke: "cylinders", r: "weight (lb)",
title: d => d["name"] + ", " + d["cylinders"]})
],
color: {
domain: [3, 4, 6, 8],
legend: true
}
})
Insert cell
tdf
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(industries, {x: "date", y: "unemployed", z: "industry", title: "industry"})
]
})
Insert cell
Plot.plot({
marks: [
Plot.lineY(alphabet, {x: "letter", y: "frequency", sort: {x: "y", reverse: true}}),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [
Plot.lineY(laserStrikes, Plot.groupX({y: "count"}, {x: "year"})),
Plot.ruleY([0])
]
})
Insert cell
import {Plot} from "@mkfreeman/plot-tooltip"

Insert cell
import {tdf} from "@observablehq/plot-line"
Insert cell
import {driving} from "@observablehq/plot-line"
Insert cell
import {laserStrikesCleaned as laserStrikes} from "@observablehq/excel-add-columns"
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