🌍 Public
Viewing a saved revision (read-only)
0e57263de7454b9da07fd8f32954a9a7
Activity6
This visualization displays country populations in 2020 as a horizontal bar chart, using a D3 scaleBand for the y-axis and a d3.scaleLinear for the x-axis. The React components render SVG rectangles with native tooltips, while custom AxisBottom and AxisLeft components generate the tick marks and labels. Data is loaded via d3.csv from a GitHub repository, with population values formatted using d3.format’s SI notation to display billions.
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.