Fork of Activity 6
✓ Published0🌍 Public
This bar chart displays the 2020 populations of the top 30 countries, ranked vertically. Population values are formatted in billions using D3's `format` function, with a custom tick label replacing 'G' with 'B'. The visualization loads CSV data via `d3.csv` from a GitHub repository and renders SVG elements from React components. Axes and marks are built using D3's `scaleBand` and `scaleLinear`, with tooltips provided by 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