Activity 6 question 2
✓ Published0🌍 Public
This example visualizes 2020 population data for 30 countries as a horizontal bar chart using React and D3 v5. It demonstrates loading CSV data from GitHub, mapping values with scaleBand and scaleLinear, and rendering SVG marks with interactive tooltips provided by SVG `<title>` elements. The chart includes styled axes with tick formatting that converts numbers to billions, using components like AxisBottom, AxisLeft, and Marks imported as local ES6 modules.
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