Skip to main content
100%

Fork of Vega-Lite API Template 2019 - Ronan

✓ Published0🌍 Public
RRonanFonseca
Last edited Aug 18, 2022
Created on Aug 18, 2022

This example presents a ranked bar chart of country populations, with bars sorted in descending order and sized at a fixed width. The visualization loads population data from a CSV file hosted on GitHub, then renders it using the Vega-Lite API, which builds on Vega and Vega-Lite. The code registers the Vega-Lite API with D3’s CSV loader, applies a custom configuration for axis styling and font sizes, and fits the chart to the full window dimensions. Tooltips display the country name on hover, and the rendering uses SVG output.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes