🌍 Public
Viewing a saved revision (read-only)
02d3d7573c914d318b65539e7e671f29
Assignment 2 - Question 2
This area chart displays declining population figures across years from 2000 to 2019, based on data from a CSV file. The visualization uses D3.js version 6 with SVG rendering, featuring a light yellow filled area with a subtle stroke. Interactive tooltips appear on hover over invisible circles positioned along the data points, showing the exact year and population value. The chart employs d3.area() for the area path, d3.scaleLinear() for both axes, and d3.axisBottom()/d3.axisLeft() for tick marks, with tooltip transitions providing animated feedback.
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.