🌍 Public
Viewing a saved revision (read-only)
86d460351bed44acb4ce6d45951f941d
Activity-6-q1.1
A horizontal bar chart shows the population of the top ten countries in the year 2000, with bars ordered by country name and green rectangles sized by population. The chart uses React components for rendering SVG elements, with d3.scaleBand and d3.scaleLinear for positioning, and d3.format for abbreviating tick labels. Data is loaded asynchronously from a CSV file via d3.csv, which also multiplies the population values by 1000 to reflect actual counts.
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.