🌍 Public
Viewing a saved revision (read-only)
b53d23a7b58c4a3d8df69425e8039fe3
Vega-lite barchart population
This example displays a bar chart of 2015 country populations, sorted in descending order, with interactive tooltips showing population values. It is built using the Vega-Lite API, which composes a specification for bar marks, nominal country fields, and quantitative population encodings. The visualization pulls data from a CSV file via `d3.csv`, and renders with SVG through `vega` and `vega-lite`. The chart fits the window and applies custom axis and label styling from a shared config object.
AI-generated descriptionA visualization constructed using the vega-lite-api.