Skip to main content
100%

Streamgraph

✓ Published0🌍 Public
MMbrownshoes
Last edited Jun 13, 2017
Created on Jun 7, 2017

A streamgraph displays changes in wholesale values of fish species over time, using a layered area chart with a wiggle offset to show magnitude fluctuations. The visualization includes an interactive tooltip that appears on mouseover, revealing the species name, and a button that toggles the display between landings tonnage and wholesale values datasets. Built with D3 v4, the code uses `d3.stack`, `d3.stackOffsetWiggle`, `d3.area`, and `d3.scaleTime` to construct the animated SVG paths, fetching data from the BC Data Catalogue API via jQuery’s AJAX.

AI-generated description

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4060954'>Streamgraph</a>

gpl-3.0 Licensed

Similar vizzes