Skip to main content
100%

Actvity6_task1

✓ Published1🌍 Public
1188r1a0559@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from tutorial1

This example shows a horizontal bar chart of 2020 population estimates for 30 countries, using SVG rectangles scaled by population values. The visualization loads CSV data from a GitHub repository via `d3.csv`, processes it with a row conversion function, and renders React components. The code uses D3 v5 scale functions (`scaleBand`, `scaleLinear`), `d3.format` for tick labeling (converting values to billions), and custom axis components that generate SVG tick marks and text labels.

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