Fork of Hello VizHub(Activity-6)
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed