Activty 6 Question 1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for ten countries in the year 2000, sourced from a CSV file loaded via `d3.csv`. The React application uses `scaleBand` and `scaleLinear` from D3 v5 to position bars and axes, while rendering SVG elements through React components. Axis ticks are formatted with `d3.format` to abbreviate large numbers, and hover tooltips are provided via SVG `<title>` elements. The chart includes custom axis components and a labeled x-axis with styling defined in the HTML stylesheet.
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