Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
LLongYuu
Last edited Nov 24, 2020
Created on Nov 24, 2020

A horizontal bar chart ranks the ten most populous countries using 2018 estimates from the World Population Prospects 2017 data. The visualization maps population values to bar widths via d3.scaleLinear and country names to vertical positions via d3.scaleBand, with axes generated by d3.axisLeft and d3.axisBottom. Rectangles are appended to an SVG group, and the population data is loaded from a CSV file and converted to thousands.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in [world population prospects 2017]

MIT Licensed

Similar vizzes