🌍 Public
Viewing a saved revision (read-only)
52e7bce352b84c98a2a4f4a260c24b3d
Activity 6
This chart displays the population of ten countries in the year 2000 using horizontal bars, with a green bar for each nation and its population value shown on hover. Built with React and D3 v5, it uses a `scaleBand` for the categorical country axis and a `scaleLinear` for the numeric population axis, rendering SVG rectangles via the `Marks` component. The bottom axis applies D3’s `format` function to abbreviate large numbers (e.g., converting billions), while data is loaded asynchronously from a remote CSV file using 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.