Fork of Task 8 Q1-2
✓ Published1🌍 Public
This example displays a horizontal bar chart of 2010 population data for 20 countries, sourced from a GitHub CSV file. The chart encodes population values on a linear x-axis scale and country names on a categorical y-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for scales, and renders SVG `rect` elements for bars. The code demonstrates loading D3 via UNPKG and importing from local ES6 modules, with tooltips formatted using `d3.format`.
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