Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Mmayuri-gosapphire
Last edited Jul 22, 2021
Created on Jul 22, 2021
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization highlights customized D3 v5 axes, including formatted tick labels that abbreviate large numbers (e.g., converting billions to "B") and gridlines created via tick sizing. The code uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the SVG chart, with data loaded from a local CSV file. Styling is applied through external CSS for text and rectangle elements.

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