Make a BarChart
✓ Published2🌍 Public
This example visualizes the populations of the ten most populous countries using a horizontal bar chart, based on 2018 estimates from World Population Prospects 2017. The chart encodes country names on a band scale and population counts on a linear scale, with bars rendered as SVG rectangles. It loads data from an external CSV file via `d3.csv`, converts population values from thousands to absolute numbers, and builds the axes using `axisLeft` and `axisBottom`. The implementation relies on D3 v6 modules such as `scaleLinear`, `scaleBand`, and `select`.
AI-generated descriptionThis bar charts shows population of the top 10 most populous countries. the data comes from the year 2018 estimate in World Population Prospects 2017.
MIT Licensed