activity 6_Task_1.1
✓ Published1🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population in the year 2000, using a green fill for each bar. It loads CSV data from a GitHub-hosted file via `d3.csv` and renders the visualization with React and SVG. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with axes and bars drawn as SVG elements. References to D3 modules like `scaleBand`, `scaleLinear`, `max`, `format`, and the `csv` function are made via ES6 imports, demonstrating local module use.
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