Reference articles on history, science, culture and more
Encyclopedia

Streamgraph

Type of stacked area graph

Image credit is listed at the end of this article.

A streamgraph, or stream graph, is a type of stacked area graph which is displaced around a central axis, resulting in a flowing, organic shape. Unlike a traditional stacked area graph in which the layers are stacked on top of an axis, in a streamgraph the layers are positioned to minimize their "wiggle". More formally, the layers are displaced to minimize the sum of the squared slopes of each layer, weighted by the area of the layer. Streamgraphs display data with only positive values, and are not able to represent both negative and positive values.

Streamgraphs and their use were popularized by Amanda Cox in a February 2008 New York Times article on movie box office revenues. Cox got the idea from then-undergraduate Lee Byron, who had used a similar method for visualizing his music listening history.

A related graph, sometimes conflated with streamgraphs, is the ThemeRiver, in which the "silhouette" of the graph is symmetrically arranged around the central axis.

Streamgraphs were found to be more readable than basic stacked area graphs or ThemeRivers for value comparison tasks.

Streamgraphs are officially supported by Matplotlib and D3.js.

Marco Di Bartolomeo and Yifan Hu (2016) propose several improvements to streamgraphs, such as using 1-norm minimization instead of 2-norm minimization.

A symmetrical ThemeRiver of music listened to by a person
A symmetrical ThemeRiver of music listened to by a person
Watch videos about StreamgraphExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Streamgraph, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.