Public
Edited
May 13, 2023
2 forks
2 stars
Insert cell
Insert cell
Plot.plot({
y: {percent: true},
marks: [
Plot.axisX({label: null, lineWidth: 8, marginBottom: 40}),
Plot.axisY({label: "↑ Responses (%)"}),
Plot.barY(responses, {x: "name", y: "value"}),
Plot.ruleY([0])
]
})
Insert cell
responses = [
{name: "Family in feud with Zuckerbergs", value: 0.17},
{name: "Committed 671 birthdays to memory", value: 0.19},
{name: "Ex is doing too well", value: 0.10},
{name: "High school friends all dead now", value: 0.15},
{name: "Discovered how to “like” things mentally", value: 0.27},
{name: "Not enough politics", value: 0.12}
]
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