BarChart with D3.js
✓ Published1🌍 Public
This bar chart displays the populations of the 19 most populated countries, using data from UN 2020 estimates. The horizontal bars are sorted by country name, with each bar’s length proportional to its population. The visualization is built with D3 v5, using `scaleLinear` and `scaleBand` to map values, and `axisLeft` and `axisBottom` for the axes. Data is loaded from a CSV file and rendered as SVG rectangles with a green fill.
AI-generated descriptionWorking with D3.js
- Making a Bar Chart
- Bar chart of 19 most populated countries
Worth noting i did a bit of cleaning on the data before exporting into this format
- Data comes from the year 2020 UN estimates in world population prospects
MIT Licensed