Activity6_Question 1
✓ Published1🌍 Public
This bar chart displays the 2020 populations of 30 countries, sorted alphabetically along the vertical axis with horizontal bars scaled by population. The visualization uses React to render an SVG, with D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Axis components are custom-built using D3’s tick methods, while data is loaded via `d3.csv` from a GitHub-hosted CSV file. Hovering over a bar reveals a tooltip via an SVG `<title>` element, and the x-axis labels are formatted using `d3.format`.
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.
MIT Licensed