Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Ssamatha516
Last edited Aug 22, 2020
Created on Aug 22, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. The data is loaded from a CSV file and rendered as SVG rectangles. The code uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to map population values to bar widths and country names to vertical bands. Each rectangle’s width corresponds to the population, with values scaled in thousands as specified in the dataset.

AI-generated description

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

MIT Licensed

Similar vizzes