🌍 Public
Viewing a saved revision (read-only)
91beaab4b8174e88a5e718e2a4bba58f
Customising Axes
This bar chart displays the population of the top 10 most populous countries, with data from the 2019 United Nations World Population Prospects. The code uses d3.csv to load the data, then d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, with d3.axisLeft and d3.axisBottom rendering the axes. Population values are multiplied by 1000, and the chart is drawn as SVG rectangles with a steelblue fill.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the Year 2019 estimate in United Nations: World Population Prospects