Public
Edited
Feb 19, 2024
2 forks
2 stars
Insert cell
Insert cell
Plot.plot({
aspectRatio: 1,
grid: true,
x: {label: "Favorable opinion (%) →"},
y: {label: "↑ Unfavorable opinion (%)"},
marks: [
Plot.ruleY([0]),
Plot.ruleX([0]),
Plot.image(presidents, {
x: (d) => d["Very Favorable %"] + d["Somewhat Favorable %"],
y: (d) => d["Very Unfavorable %"] + d["Somewhat Unfavorable %"],
src: "Portrait URL",
title: "Name"
})
]
})
Insert cell
presidents = FileAttachment("us-president-favorability@2.csv").csv({typed: true})
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