🌍 Public
Viewing a saved revision (read-only)
7661bf0b302a44d2b31aaae634200426
activity 6_Task 1
This bar chart displays the populations of the top 20 countries in 2010, using horizontal bars and a logarithmic-like axis format that abbreviates large numbers (e.g., "B" for billions). Rendered as an SVG in React, the visualization uses D3 v5 modules such as `scaleBand` for the categorical y-axis and `scaleLinear` for the x-axis, with a tooltip on each bar showing the exact value. Data is loaded from a CSV via D3’s `csv` function.
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.