🌍 Public
Viewing a saved revision (read-only)
a7b3eb599773415099137a06132f1d68
Activity6_Question1
This bar chart displays the population of ten countries in the year 2020, with country names on the vertical axis and population values on the horizontal axis. The chart uses React with D3 v5 scales, including `d3.scaleBand` for the categorical axis and `d3.scaleLinear` for the quantitative axis, rendering SVG rectangles. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and axis ticks are formatted using `d3.format`. Hovering over a bar reveals a tooltip with the population value.
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.