Viewing a saved revision (read-only)
af3240a3b9cb419384f9974772c4e081
Fork of Customizing Axes
This bar chart displays the 2018 population estimates for the top 10 most populous countries, with data from the United Nations World Population Prospects. It uses D3 v5 with SVG rendering, leveraging `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis, while customizing axes with `d3.axisBottom` and `d3.axisLeft`. The code applies custom tick formatting via `d3.format` to abbreviate large numbers (e.g., converting billions to "B"). Data is loaded from a local CSV file using `d3.csv`.
AI-generated descriptionInspired in Bar Chart example by Curran Kelleher that can be checked here.
This 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.