activity6 question 1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the top 20 countries by their 2010 population. Built with React and D3 v5, it uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, rendering rectangular marks as SVG elements. The data is loaded via `d3.csv` from a GitHub-hosted CSV file, and the chart includes formatted axes with tick labels 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