Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Rrandom-program
Last edited Nov 22, 2020
Created on Nov 22, 2020
Forked from Making a Bar Chart

This bar chart shows the top 10 most populous countries using 2017 United Nations population estimates. The SVG visualization uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis, with custom tick formatting that converts billions to the ‘B’ suffix. Axes are styled via `d3.axisBottom` and `d3.axisLeft`, removing default domain lines and adding a centered axis label. Data is loaded with `d3.csv` and displayed as steelblue rectangles.

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