🌍 Public
Viewing a saved revision (read-only)
d008c63f110d43bc8d19129399ec1c95
activity 6 task 1.2
This example shows a horizontal bar chart of 2010 population data for 20 countries, sorted by country name. The visualization uses React to render SVG rectangles, with D3 v5 scales (scaleBand and scaleLinear) for positioning. Axes are custom React components, and the chart loads CSV data from a GitHub repository, formatting population values with the d3.format utility. Hovering over a bar displays its population value via an SVG title element.
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.