Task-6 Q1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population for the year 2000, fetched from a CSV file via the `csv` function in D3 v5. The React-based visualization uses SVG and D3's `scaleBand` and `scaleLinear` for axes, with bars rendered as `rect` elements that include tooltips formatted with D3's `format`. The code demonstrates local module imports for axes and marks, and loads D3 and React from UNPKG.
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