🌍 Public
Viewing a saved revision (read-only)
71a88e0aceec47c5aa26dec4a5e2b440
Activity6_question1
A horizontal bar chart displays the population of the top ten countries in the year 2000, with bars extending from left to right. The visualization uses D3’s `scaleBand` for the y-axis to position each country and `scaleLinear` for the x-axis to map population values, with axis tick labels formatted using D3’s `format`. Data is loaded from a remote CSV file via `d3.csv`, and the chart is rendered as an SVG with React, with tooltips showing the formatted population for each bar.
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.