🌍 Public
Activity_6_2
A horizontal bar chart displays the 2010 populations for 30 countries, sorted vertically by name, with bars extending rightward from a shared baseline. Population values are formatted using D3's `format` with SI prefixes, converting billions to a readable tick label. The visualization is built with React components and D3 v5 scales, including `scaleBand` for the categorical country axis and `scaleLinear` for the quantitative population axis. SVG rectangles render the bars, with tooltips provided via SVG `<title>` elements, and the data is loaded from a remote CSV file using D3's `csv` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.