Task 8_Task 1
✓ Published1🌍 Public
This example displays a horizontal bar chart of population data for ten countries in the year 2000, using an SVG rendered through React. The visualization imports D3 v5 modules like `scaleBand`, `scaleLinear`, `format`, and `csv` to load the dataset from a GitHub URL and map country names to categorical bands with population values on a linear scale. The `AxisBottom` and `AxisLeft` components generate tick marks and labels, while the `Marks` component draws green rectangles with tooltips showing formatted population values, with the bottom axis labeled "POPULATION-2000".
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