Activity-6_Ques-1.2
✓ Published0🌍 Public
This horizontal bar chart displays the population of 20 countries in 2010, sorted alphabetically by country name. The visualization uses React to render an SVG with D3 scales, including `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The code imports D3 utilities like `csv`, `format`, and `max` to load and process data from a GitHub gist. Interactive tooltips appear on hover via SVG `<title>` elements, and axes are built with custom components using tick marks and labels.
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