activity 6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for 30 countries in 2020, with country names on the y-axis and numeric population values on the x-axis. It uses d3.scaleBand and d3.scaleLinear for scales, with d3.format to abbreviate tick labels. Data is loaded via d3.csv from a GitHub-hosted CSV file. React components render SVG rectangles for the bars, and each bar includes a tooltip showing the formatted population value.
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