Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
SSuvrajit karmaker
Last edited Apr 27, 2020
Created on Apr 27, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. It shows a horizontal bar layout with country names on the y-axis and population values on the x-axis, featuring custom axis formatting that converts large numbers to abbreviated units like “B” for billions. Built with D3 v5, the example uses `d3.scaleLinear` and `d3.scaleBand` for positioning, `d3.axisLeft` and `d3.axisBottom` for axes, and `d3.csv` to load data. The chart is rendered as SVG elements with styled 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