Fork of Customizing Axes v2
This bar chart shows the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects 2017. It demonstrates axis customization using D3 v5, including formatted tick labels that convert large numbers into abbreviated values with ‘B’ for billions, horizontal gridlines, and custom axis labels. The chart is rendered as an SVG using D3’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, with data loaded from a CSV file. The longest bar reaches China’s population of over 1.4 billion.
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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.








Comments
Sign in to join the discussion.