Tutorial 8 Task1
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2020 population estimates for 30 countries, with a green fill, blue axis ticks, and a custom “POPULATION-2020” axis label. It loads data from a remote CSV via `d3.csv` and uses `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `max` to set the domain. The React components render SVG groups for the bottom and left axes, while each bar’s `<rect>` includes a `<title>` tooltip formatted with `d3.format('.2s')`. D3 v5 is loaded via UNPKG.
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