Fork of Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the populations of the world’s ten most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization encodes each country’s population as the length of a horizontal bar, sorted by value, with a linear scale on the x-axis and a band scale on the y-axis. Built with D3 v5, the code loads data from a CSV file via `d3.csv`, then renders SVG rectangles using `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`. The data is explicitly parsed into numeric population values before rendering.
AI-generated descriptionThis bar chart shows population of 10 most populos countris.The data comes from the year 2018 estimate in United Nations:World Population Prospects 2017.
MIT Licensed