activity6_q1
✓ Published0🌍 Public
This bar chart displays the population of ten countries in the year 2000, with country names on the y-axis and population on the x-axis. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for scales, and `max` to determine the domain. Data is loaded asynchronously from a CSV file via D3’s `csv` function and formatted with `format` using SI notation (e.g., “B” for billions). Axes are custom components (`AxisBottom`, `AxisLeft`) and rectangles include a native SVG `<title>` tooltip.
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