activity 6_Q1_2
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 countries by population from a 2010 dataset. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. Axes are rendered using D3’s `format` with a custom tick label that converts values to billions. The chart loads data via `d3.csv` and renders the rectangles with tooltips.
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