Skip to main content
100%

Activity 6 question 1_2

✓ Published0🌍 Public
AAamani Chamarthi
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, using horizontal bars ordered by country name. The visualization loads CSV data from GitHub via `d3.csv` and renders as an SVG using React components (AxisBottom, AxisLeft, Marks) with scales from `d3.scaleBand` and `d3.scaleLinear`. The x-axis uses `d3.format` to abbreviate population values (e.g., converting gigabytes to billions). Hovering over each bar reveals the exact population through an SVG `<title>` tooltip.

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