Skip to main content
100%

Making a simple bar chart

✓ Published3🌍 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
MIT Licensed

Similar vizzes