Ogelo - D3 Bar Chart
This bar chart displays the 2018 population estimates for the ten most populous countries, using data from the United Nations World Population Prospects 2017. The visualization ranks countries along a horizontal bar layout, with population values on the x-axis and country names on the y-axis. Built with D3 v5, the example creates linear and band scales (`d3.scaleLinear`, `d3.scaleBand`) and customizes the axes using `d3.axisLeft` and `d3.axisBottom`. The SVG bars are rendered with a steelblue fill, and country labels are styled with a larger font size.
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.








Comments
Sign in to join the discussion.