🌍 Public
Q2_Activity_7
A horizontal bar chart displays 2010 population estimates for 20 countries, ranked by country name along the y-axis and population magnitude along the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical axis, `scaleLinear` for the numeric axis, and SVG `<rect>` marks with tooltips. Data loads from a remote CSV via `d3.csv`, with values multiplied by 1000 and formatted using the `format` function to abbreviate billions as "B".
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.