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