Activity 7
✓ Published0🌍 Public
This bar chart displays population figures for 20 countries in 2020, using horizontal bars sorted by country name. The visualization loads CSV data from a GitHub gist, parses the population values, and renders SVG rectangles scaled by a d3.scaleLinear x-axis with a d3.scaleBand y-axis. Custom React components for axes and marks handle ticks and tooltips, while formatting converts raw values to billions 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