Skip to main content
100%

Fork of Activity-6

✓ Published2🌍 Public
KKarnam Abinay Goud
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity-6

This fork of Activity-6 presents a horizontal bar chart that ranks the top 30 countries by their 2020 population, using data from a CSV file hosted on GitHub. The bars are drawn as SVG rectangles, with their widths scaled by population values and their vertical positions determined by a categorical y-scale. The visualization uses D3 v5 for data loading (via `d3.csv`) and scale construction, while React manages the component state and rendering. Axis components render tick marks and labels, and hovering over a bar reveals its exact population value through a native 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