Activity 6
✓ Published0🌍 Public
This example visualizes 2020 population estimates for 30 countries as a horizontal bar chart. Using React and D3 v5, it loads CSV data via d3.csv and maps each country’s population to bar widths with d3.scaleLinear and d3.scaleBand, while axes are rendered through custom React components. Bars include native SVG tooltips showing formatted values, and d3.format abbreviates large numbers.
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