Public
Edited
Mar 15, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.barY(alphabet, {x: "letter", y: "frequency", sort: {x: "y", reverse: true}}),
Plot.ruleY([1 / 26], {stroke: "orange"}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
Plot.plot({
y: {
grid: true
},
marks: [
// Plot.ruleY([1 / 26], {stroke: "orange"}),
Plot.barY(alphabet, {x: "letter", y: "frequency", sort: {x: "y", reverse: true}}),
Plot.barY([1 / 26], {fill: "orange", fillOpacity: 0.3}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
// Plot.ruleY([0]),
Plot.lineY(power_vs_temperature,
Plot.windowY({x: "date", y: "temperature", k: k, reduce: "median", stroke: "city"}))
],
color: {
domain: ["Seattle", "Los Angeles"],
legend: true
},
marginLeft: 50
})
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.dot(power_vs_temperature, {x: "temperature", y: "power", fill: "city"})
],
color: {
domain: ["Seattle", "Los Angeles"],
legend: true
},
marginLeft: 50
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {bls} from "@observablehq/plot-line"
Insert cell
import {power_vs_temperature} from "@observablehq/guide-electricity"
Insert cell
// import {Plot} from "@mkfreeman/plot-tooltip"
Insert cell
import {stateage} from "@observablehq/plot-bar"
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