Vega-lite barchart population
✓ Published1🌍 Public
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.
MIT Licensed