Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
Nnathan@shieldsonline.org
Last edited Apr 30, 2024
Created on Apr 30, 2024
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries based on 2018 United Nations estimates, with population values in thousands. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG bars, while a custom tick formatter converts large numbers to readable abbreviations like “B” for billions. Axis labels and a title are added manually, and gridlines are drawn via `tickSize(-innerHeight)`. Data is loaded from a local CSV file, with the population column multiplied by 1000 during preprocessing.

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.

MIT Licensed

Similar vizzes