Skip to main content
100%

A Bar chart with D3.js!

✓ Published1🌍 Public
AAnderson Banihirwe
Last edited Aug 26, 2020
Created on Aug 26, 2020
Forked from A Face with D3.js!

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. It uses D3.js v5 with an SVG rendering approach. The code loads data from a CSV file, scales the population values linearly on the x-axis and uses a band scale for the categorical country labels on the y-axis. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, while bars are appended as SVG rectangles with a steelblue fill.

AI-generated description

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

MIT Licensed

Similar vizzes