Public
Edited
Nov 4, 2022
Insert cell
Insert cell
df = d3.csv(
"https://download.data.world/s/w4mi6tqwrz4icngkhrf7ha72l27lhs",
d3.autoType
)
Insert cell
dotplot = Plot.dot(df, {
x: "raised",
y: "spent",
stroke: "white",
strokeWidth: 0.2,
fill: "party"
}).plot()
Insert cell
Plot.plot({
height: 800,
marks: [
Plot.dot(
df.filter((d) => d.raised > 0),
Plot.dodgeY({ x: "raised", fill: "party" })
)
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(
df.filter((d) => d.raised > 0),
Plot.binX({ y: "count" }, { x: "raised" })
),
Plot.ruleY([0])
]
})
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