Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5 to map country names to the y-axis via `scaleBand` and population values to the x-axis via `scaleLinear`, rendering the data as steel-blue SVG rectangles. Axes are added using `axisLeft` and `axisBottom`, with a maximum value computed by `max`. The data is loaded from a local CSV file, and population figures are converted from thousands to absolute numbers.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.
MIT Licensed