Activity6_Task1
✓ Published0🌍 Public
This example displays a horizontal bar chart of 2020 population figures for 30 countries, using a light green fill and blue tick marks. Population values are formatted with SI prefixes, converting "G" to "B" for billions. The visualization is built with React and D3 v5, loading CSV data via `d3.csv` and rendering SVG bars using `scaleBand` and `scaleLinear`. The `AxisBottom` and `AxisLeft` components generate ticks, while `Marks` renders rectangles with tooltip titles.
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