Activity6_Q1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population figures for ten countries in the year 2000, using SVG rendering within a React framework. The chart loads data from a CSV file via D3’s `csv` function and uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The `AxisBottom` and `AxisLeft` components generate tick marks and labels, while the `Marks` component renders rectangles whose widths encode population values, with hover tooltips provided by SVG `<title>` elements.
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