🌍 Public
Viewing a saved revision (read-only)
7b81ff7c953c4498a0e0ba709c7a40db
Activity-6 Q1.1
This chart shows the populations of ten countries in the year 2000, arranged as a horizontal bar chart with country names on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements, with `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis. Population data is loaded and parsed from a CSV file via `d3.csv`, with values scaled and formatted using `d3.format` to display in billions. The bars display a native SVG tooltip showing the formatted population value on hover.
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.