Skip to main content
100%

Fork of Fork of Fork of Fork of Making a Bar Chart

✓ Published1🌍 Public
Vvipulrohit127@gmail.com
Last edited Jun 1, 2024
Created on Jun 1, 2024

This horizontal bar chart displays the top 10 most populous countries using 2018 United Nations population estimates. The visualization encodes population values as bar lengths along a linear scale, with country names on a band scale. The code uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to construct the SVG rendering. Population figures are formatted in billions using d3.format, with axis grid lines and customized tick labels.

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