Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Ssohum42
Last edited Jan 29, 2022
Created on Jan 2, 2022
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries based on 2018 United Nations population estimates. The visualization uses D3 v5 to create scaled bars and customized axes, with the x-axis formatted to abbreviate large numbers (e.g., "G" replaced with "B" for billions). The chart loads data from a CSV file, scales the population values by 1000, and renders the result as SVG. Both the y-axis labels and the title are styled through CSS, while grid lines extend across the plot area using the `axisBottom` and `axisLeft` APIs.

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