🌍 Public
Viewing a saved revision (read-only)
82fdc31f57014943b89504e275fd665d
Activity6_task-1
This visualization displays the populations of 20 countries from a CSV dataset, using a horizontal bar chart rendered as SVG elements within a React application. The chart employs D3 v5 scales to map country names to the y-axis and population values to the x-axis. Population data is loaded asynchronously via `csv()` and formatted with `format('.2s')` for abbreviated tick labels. The axis components and colored rectangles are built from D3 scale outputs using JSX, with tooltips provided by SVG `<title>` elements.
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.