activity 6_Task 1
✓ Published1🌍 Public
This horizontal bar chart displays the populations of ten countries for the year 2020, ordered by country name. Using D3 v5 scales and React, the visualization maps population values to bar lengths on a linear scale while mapping country names to a band scale on the y-axis. The chart loads CSV data from a GitHub repository, converts the population column from thousands, and renders SVG rectangles with tooltips showing formatted values. The axes are styled with custom tick marks and labels, with the x-axis labeled "POPULATION-2020".
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