🌍 Public
Viewing a saved revision (read-only)
d034708235dc4a339d80edecf8a38b3f
Activity6_Question1.2
This bar chart displays the population of 20 countries in 2010, using horizontal bars ordered by country name. React components render SVG elements, while D3 v5 scales (`scaleBand`, `scaleLinear`) and formatting (`format('.2s')`) handle the visualization logic. The data is loaded from a CSV file via `csv` and sliced to the top 20 entries. Axes are custom-built with React, and each bar includes a native SVG `<title>` element for tooltips.
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.