Biology — Chart: Population Age Structure
A simple age-distribution bar chart.
Rendering…
Make it your own.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Population by age band",
"data": {"values": [
{"age": "0-14", "percent": 26},
{"age": "15-24", "percent": 17},
{"age": "25-44", "percent": 27},
{"age": "45-64", "percent": 20},
{"age": "65+", "percent": 10}
]},
"mark": "bar",
"encoding": {
"x": {"field": "age", "type": "ordinal", "title": "Age band"},
"y": {"field": "percent", "type": "quantitative", "title": "% of population"},
"color": {"field": "age", "type": "nominal", "legend": null}
}
}