Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Rradhadevarapu
Last edited Mar 6, 2023
Created on Mar 6, 2023
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, based on 2018 United Nations World Population Prospects estimates. The chart plots countries along the y-axis and population counts along the x-axis, using a linear scale for population and a band scale for countries. Built with D3 v5, the code employs `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and a custom tick formatter that converts numbers to abbreviated units like "B" for billions. The SVG rendering includes gridlines, axis labels, and a title, with styling applied via CSS classes.

AI-generated description

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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes