activity 6_Task 1
✓ Published1🌍 Public
This example shows a horizontal bar chart of 2020 population figures for 30 countries, with bars colored light green and a blue axis grid. The chart uses React components to render SVG elements, with D3's `scaleBand` and `scaleLinear` handling the y and x axes respectively. Data loads asynchronously from a GitHub-hosted CSV file via `d3.csv`, and tooltips display formatted population values using `d3.format`. The visualization demonstrates local ES6 module imports and D3 integration within a React framework.
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