Activity6_Task1
✓ Published0🌍 Public
This visualization displays a horizontal bar chart of population figures for 30 countries in 2020, with bars scaled logarithmically from zero. The React-based example uses D3 v5 modules like `scaleBand` and `scaleLinear` for axes and positioning, while rendering SVG rectangles through custom `AxisBottom`, `AxisLeft`, and `Marks` components. Data loads from a remote CSV via `d3.csv`, with population values transformed by multiplying the 2020 column by 1000. Tick labels use `d3.format` to abbreviate large numbers (e.g., 'B' for billions), and tooltips provide formatted values on hover.
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