Fork of Fork of Fork of Fork of Fork of Making a Bar Chart
✓ Published0🌍 Public
Vvipulrohit127@gmail.com
Last edited Jun 1, 2024
Created on Jun 1, 2024
This bar chart displays the 2018 population estimates for the top 10 most populous countries, sourced from the United Nations World Population Prospects. Using D3 v5, it renders an SVG with horizontal bars sorted by country name, a formatted x-axis that abbreviates large numbers (e.g., "B" for billions), and a custom title. The code applies `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with data loaded via `d3.csv` and scales configured inside the `render` function.
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. It also demonstrates customization of D3 axes.
MIT Licensed