Task8_Q2
✓ Published0🌍 Public
This visualization shows a horizontal bar chart of the 2010 population figures for 20 countries, ordered by country name. Using React and D3 v5, the chart loads CSV data from a GitHub source, then renders SVG rectangles scaled by population. The code employs D3's scaleBand and scaleLinear for axis mapping, while custom AxisBottom and AxisLeft components handle tick marks and labels, with population values formatted using D3's format function and tooltips via SVG title elements.
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