Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Aantoniojl@gmail.com
Last edited Apr 19, 2022
Created on Apr 16, 2022

This bar chart displays the population of the top ten most populous countries, based on 2018 estimates from the World Population Prospects 2017. The visualization uses an SVG-rendered layout with horizontal bars, where each country’s population is encoded by bar length. The code employs D3 v7’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position and label the bars, and it loads data from a CSV file using `d3.csv`. Bars are styled with a steelblue fill, and the chart includes margins and axes for clarity.

AI-generated description

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

MIT Licensed

Similar vizzes