Activity 6_Task_12
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2010 population figures for 30 countries, with a green fill on each bar and a tooltip displaying the abbreviated population value. The visualization loads a CSV from GitHub via `d3.csv`, maps the data through `useData`, and renders SVG bars using React components. Scales are built with `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the population axis, while tick formatting uses `d3.format`.
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