Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a simple bar chart

Public visualization

Viewing a saved revision (read-only)

4162756d44354e12813065f2ba2aed59

Making a simple bar chart

0 stars3🌍 Public
SSimon Wongsuwarn
Last edited Jul 7, 2019
Created on Jul 7, 2019

A bar chart displays population estimates for the 24 most populous countries in 2020, using horizontal bars sorted in descending order. The visualization ranks countries from China to Tanzania, with bar lengths proportional to population values loaded from a CSV file. Built with D3 v5, the code uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart in SVG, with population values converted from thousands to raw numbers before rendering.

AI-generated description