🌍 Public
Viewing a saved revision (read-only)
21f97b45745a452c9e2c29eb8450dcc9
activity6_q1
This interactive bar chart uses a horizontal layout to display the population estimates of ten countries for 2010, sourced from a CSV file hosted online. The visualization, built with React and D3 v5, renders SVG rectangles whose lengths are proportional to each country's population value. The code employs D3's `scaleBand` for the categorical country axis and `scaleLinear` for the quantitative population axis, with formatted axis ticks and tooltips showing the abbreviated values.
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.