Public
Edited
Oct 24, 2023
Insert cell
Insert cell
import {GroupedBarChart} from "f0ad19004817afa3"
Insert cell
Plot.plot({
x: {axis: null, domain: ages},
y: {tickFormat: "s"},
color: {scheme: "spectral", domain: ages},
facet: {data: stateages, x: "state"},
marks: [
Plot.barY(stateages, {
x: "age",
y: "population",
title: "age",
fill: "age",
sort: {fx: "y", reduce: "sum", limit: 6, reverse: true}
}),
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