Skip to main content
100%

Activity6_tutorial

✓ Published0🌍 Public
Nnishwitha.1032@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This bar chart displays the 2020 population estimates for 30 countries, sorted by country name. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map data to SVG rectangles, with axes built from custom `AxisBottom` and `AxisLeft` components. Population values are loaded from a remote CSV and formatted with a SI prefix, replacing ‘G’ with ‘B’ for billions. Tooltips reveal exact values via SVG `<title>` elements.

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