Fork of JC Task-7 Q1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 20 countries in 2020. It uses React with SVG rendering, and D3’s `csv`, `scaleBand`, `scaleLinear`, and `max` functions to load and transform the data, and to position the bars and axes. The bars are drawn as SVG rectangles, with a native `<title>` element providing a simple tooltip. Data comes from a CSV file hosted on GitHub.
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