Skip to main content
100%

Fork of Hello VizHub(Activity-6)

✓ Published0🌍 Public
KKavyaEti
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example presents a horizontal bar chart ranking the 30 largest countries by their 2020 population, drawn from a CSV hosted on GitHub. The React components use `d3.csv` to load the data and rely on `xScale.ticks()` for the bottom axis and `yScale.bandwidth()` for bar heights and the left axis. Each bar is a `rect` element with a native SVG `<title>` tooltip showing the population value. The chart is built with D3 v5 and React, with axes and marks implemented as separate ES6 modules.

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