Skip to main content
100%

Making a Bar Chart with D3.js!

✓ Published2🌍 Public
Llerik03
Last edited Nov 30, 2022
Created on Nov 29, 2022

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 horizontal bars are rendered as SVG rectangles, with country names on the y-axis and population values on the x-axis. The visualization uses D3.js v5, employing `scaleLinear` and `scaleBand` for scaling, `axisLeft` and `axisBottom` for axes, and custom tick formatting to abbreviate large numbers with 'B' for billions. The chart includes a title and axis label, with styling applied via CSS.

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