🌍 Public
Viewing a saved revision (read-only)
ed25655fec2a4ffd957b9846c27c406d
Activity 6
A horizontal bar chart displays population estimates for 30 countries in 2020, sorted by country name. The chart uses D3 v5 and React to render SVG elements, with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Data is loaded via `d3.csv` from a GitHub repository, with population values converted from thousands. The code formats tick labels using `d3.format` and includes interactive tooltips via SVG `<title>` elements.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.