🌍 Public
Viewing a saved revision (read-only)
f33cfeab7a274f6c846a5ac8d9b890e4
Activity 6
This horizontal bar chart visualizes the 2020 population of 30 countries, sorted alphabetically on the y-axis with population encoded by bar length on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for positioning, with data loaded via `d3.csv` from a GitHub dataset. SVG rendering includes custom `AxisBottom` and `AxisLeft` components, while `Marks` renders bars with tooltips 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.