Activity 7
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 countries by 2010 population. It uses React to render SVG elements and D3 v5 scales and axes for layout, with data loaded from a CSV file via d3.csv. The chart includes blue tick lines, green bars, and a formatted population axis label. Tooltips display the population values using D3’s format function with SI-prefix notation.
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.
MIT Licensed