Activity 6 Q 1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the population of ten countries for the year 2000, using data loaded from a CSV file via `d3.csv`. The React application builds an SVG visualization with `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, formatting tick labels with `d3.format` to abbreviate large numbers. Bars are rendered as SVG rectangles with native `<title>` tooltips, while custom axis components handle the bottom and left tick generation.
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