Activity6_Question 1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 20 countries by population in 2010, with bars colored light green and axes rendered as SVG elements. It loads population data from a GitHub-hosted CSV file using `d3.csv`, and builds the visualization with `scaleBand` and `scaleLinear` for scales. The React-based code demonstrates modular components for the bottom and left axes, as well as marks, while using `d3.format` to abbreviate large population values (e.g., converting gigabytes to billions) in the tooltip and tick labels.
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