Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
AAmar Nath Yogi
Last edited Jan 4, 2020
Created on Jan 3, 2020

This bar chart displays the population of the top ten most populated countries using 2018 estimates from the United Nations World Population Prospects. It encodes country names on the y-axis with a d3.scaleBand and population values on the x-axis with a d3.scaleLinear, rendering rectangles in SVG. The visualization uses d3.axisLeft and d3.axisBottom for the value labels and applies a hover effect that changes rectangle fill via CSS. Data is loaded through d3.csv and parsed as numbers before being mapped to the scales.

AI-generated description

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

MIT Licensed

Similar vizzes