Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Vvasukipriyam
Last edited Apr 23, 2019
Created on Apr 23, 2019
Forked from Making a Bar Chart

A bar chart displays the populations of the top 10 most populous countries from a 2018 United Nations estimate. Using d3.csv, the data is parsed, and d3.scaleLinear and d3.scaleBand map population values and country names to the SVG canvas. Axes are rendered with d3.axisLeft and d3.axisBottom. Animated transitions update bar heights when the cereal dataset is selected via a dropdown, demonstrating reusable chart components with d3 v5.

AI-generated description

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

MIT Licensed

Similar vizzes