Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Largest 5 Countries Bar Chart

Public visualization

Viewing a saved revision (read-only)

273d9f6b57ec4a1cae29470624397fb8

Vega-Lite API Largest 5 Countries Bar Chart

0 stars1🌍 Public
NNelson M
Last edited Nov 18, 2023
Created on Nov 18, 2023

This bar chart visualizes the top five countries by population in 2015, using a dataset from a GitHub-hosted CSV file. The chart reads the data with the D3.js `csv` function and renders bars through the Vega-Lite API, a JavaScript wrapper for Vega-Lite specifications. It encodes country values on the x-axis and population on the y-axis, with tooltips displaying exact population figures. The visualization is configured with custom styling, including larger fonts and a dark color scheme, and uses the Vega and Vega-Lite libraries alongside the Vega Tooltip handler for interactive hovering.

AI-generated description

A visualization constructed using the vega-lite-api.