Skip to main content
100%

Bar chart with D3.js!

✓ Published1🌍 Public
Aannadehtiarova
Last edited Feb 7, 2021
Created on Jan 30, 2021
Forked from Hello VizHub

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The code uses D3 v6 with `d3.csv` to load the data, `scaleLinear` and `scaleBand` for scales, and `axisLeft` and `axisBottom` for axes. SVG rectangles represent the bars, with tick formatting converting values to abbreviations like “1.41B” and a light gray background for the chart area.

AI-generated description

This bar chart shows population of the top most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017

MIT Licensed

Similar vizzes