activity 6_Task 1
✓ Published1🌍 Public
This example displays a horizontal bar chart of the 2020 populations for 30 countries, using a green fill for each bar. The chart is rendered as an SVG via React, with D3 v5 handling the data loading through `csv` and the linear and band scales for the axes. Axis ticks are generated manually with custom components, and D3's `format` function converts large numbers into abbreviated labels like "B" for billions.
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