Skip to main content
100%

activity9-2

✓ Published0🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 22, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes