Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Largest 5 Countries

Public visualization

Viewing a saved revision (read-only)

67747300e3df4c4686b3e5aee0252c38

Largest 5 Countries

0 stars1🌍 Public
JJohn Jeevasaeyan
Last edited Sep 6, 2021
Created on Sep 6, 2021

A bar chart displays the populations of the five most populous countries, sorted in descending order, with a tooltip revealing each country’s exact population value. The visualization is built using the Vega-Lite API, which programs a bar mark with a numeric y-axis and categorical x-axis, all rendered as an SVG via the `vl.render()` method. Data is fetched as CSV from a remote GitHub gist using D3’s `csv` function, with styling customized through a configuration object.

AI-generated description

A visualization constructed using the vega-lite-api.