Skip to main content
100%

Making a Bar Chart

✓ Published265🌍 Public
CCurran Kelleher
Last edited Dec 28, 2019
Created on Dec 19, 2019
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, based on 2018 United Nations estimates. It uses D3 v5 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the visualization as SVG. The chart customizes axes by removing domain lines and ticks, and formats population labels using `format('.3s')` with a custom “B” suffix for billions. The data loads from the local `data.csv` file and is preprocessed by multiplying values by 1000.

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