Skip to main content
100%

Vega-lite barchart population

✓ Published1🌍 Public
LLewis Ward
Last edited Jun 25, 2021
Created on Jun 25, 2021

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 description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes