activity6_q1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart showing the population of various countries for the year 2000, with bars sorted by country name and green-filled rectangles representing population values. The chart uses D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and custom `AxisBottom` and `AxisLeft` components for tick labels. Data is loaded from a remote CSV file via `d3.csv`, formatted with `d3.format`, and rendered as SVG in a React app.
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