Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Hhamza.miftah@gmail.com
Last edited Jul 12, 2022
Created on Jul 10, 2022
Forked from Let's make a face!

This bar chart displays the populations of the top 10 most populous countries in 2018, using horizontal bars sorted by country name. The chart is rendered as an SVG using D3 v5, with `d3.scaleLinear` mapping population values to bar widths and `d3.scaleBand` positioning each country along the y-axis. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, and data is loaded from a CSV file via `d3.csv`. Population values are multiplied by 1000 to reflect actual figures.

AI-generated description

This bar chart shows population of the top 10 most populous countries the data comes from the year 2018

MIT Licensed

Similar vizzes