Task 1 a
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for ten countries in the year 2000, with the bars sorted by country name. The visualization uses React to render SVG elements, with D3 v5 scales and formatting applied through `scaleBand`, `scaleLinear`, and `format`. The data is loaded from a CSV file using `d3.csv`, and axes are custom components built from SVG `<g>` elements. Hovering over a bar reveals a native tooltip with the formatted population value.
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