activity9-2
✓ Published0🌍 Public
This stacked area chart visualizes sea turtle population trends from 1900 onward across three categories—Green, Loggerhead, and Hawksbill—using time-series data loaded via `d3.csv`. The visualization uses `d3.stack()` to layer the series and `d3.area()` with `curveBasis` for smooth paths, while `d3.scaleTime` and `d3.scaleLinear` map years and counts. Axes employ `d3.axisBottom` and `d3.axisLeft`, with `d3.timeFormat('%Y')` for year labels and `d3-scale-chromatic` for color encoding. Tooltips appear on hover via appended `<title>` elements, and the chart resizes dynamically with the window.
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