Activity6_Question1-1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the populations of the top ten countries in the year 2000. The visualization uses D3 v5 scale functions, specifically `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, all rendered as SVG via React components. Data is loaded from a remote CSV using D3's `csv` function and formatted with the `format` API for axis labels. The chart includes custom tick marks and axis labels, with interaction provided through SVG `<title>` tooltips.
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