Skip to main content
100%

Activity6_Question1

✓ Published0🌍 Public
Vvankayalapatimounika2000@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from task-2

A horizontal bar chart displays the populations of ten countries in 2000, sourced from a CSV file fetched with `d3.csv` via `useData`. The React app renders SVG bars using `d3.scaleBand` for the country categories and `d3.scaleLinear` for population values, with axes built through local `AxisBottom` and `AxisLeft` components. Values are formatted with `d3.format` to abbreviate large numbers, and hovering reveals a tooltip via a native SVG `<title>` element.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes