transform:(d)=>d/1_000_000,//to make the numbers on y axis smaller
label:"ꜛMillion People"
},
marks:[
Plot.barY(data,{
x:"name",
y:(d)=>d["20-29"],//or do it with just "20-29" instead of '(d) =>["20-29"]'
sort:{
x:"y",
reverse:true
}
})
]
})
// ...
// ...
// ...
// ...
ageRangeToFocus="≥80"
// ...
// ... the dropdown menu should let the user select from '<10', '10-19', '20-29', '30-39', '40-49', '50-59', '60-69', '70-79', '≥80'
// ...
// ...
// ...
// ...
// import {Wrangler, op} from "@observablehq/data-wrangler"
import{toc}from"@nebrius/indented-toc"
import{imageToDo}from"@clokman/student-blocks"
imageToDo
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.