Skip to main content
100%

It has dataCsv - Making a bar chart

✓ Published1🌍 Public
Sshallowater
Last edited Jul 11, 2019
Created on Jul 11, 2019
Forked from Making a bar chart

This bar chart displays the population of the top 10 most populous countries, with data from the World Population Prospect 2017. The visualization uses d3.csv to load the data, then d3.scaleLinear and d3.scaleBand to map population values and country names to positions. The code renders bars as SVG rectangles and includes axes with d3.axisLeft and d3.axisBottom, using a custom tick formatter to abbreviate large numbers. Population values are multiplied by 1000 during preprocessing.

AI-generated description

The bar chart show population of the top of 10 most popluois countries. The data comes from World Population Prospect 2017.

MIT Licensed

Similar vizzes