Skip to main content
100%

Streamgraph

✓ Published0🌍 Public
AAjayyy
Last edited Jun 26, 2018
Created on Jun 25, 2018

The streamgraph displays a time series with 20 layers generated from random bump data, using the D3 stack and area components with a wiggle offset to create a flowing, organic shape. A button triggers a transition that interpolates between two different layer layouts over 2.5 seconds, using D3's path transition tweening to smoothly morph the area boundaries. Colors are assigned randomly from the interpolateCool color scale, and the visualization renders as SVG paths, with data generated from a custom bump algorithm inspired by Byron and Wattenberg.

AI-generated description

For continuous data such as time series, a streamgraph can be used in place of stacked bars. This example also demonstrates path transitions to interpolate between different layouts. Streamgraph algorithm, colors, and data generation inspired by Byron and Wattenberg.

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