Making a Bar Chart
✓ Published1🌍 Public
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 descriptionThis 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