HOME

TheInfoList



OR:

A streamgraph, or stream graph, is a type of stacked area graph which is displaced around a
central axis The Central Axis (, PT), or the Central Axis Coalition (, KPT) was a coalition of political parties in Indonesia that supported Abdurrahman Wahid as a presidential candidate in the 1999 Indonesian presidential election. This coalition is based on ...
, 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 Amanda Cox is an American journalist and executive editor of data journalism at Bloomberg News. Previously she was head of special data projects at USAFacts. Until January 2022 she was the editor of the ''New York Times'' data journalism sectio ...
in a February 2008 ''
New York Times ''The New York Times'' (''NYT'') is an American daily newspaper based in New York City. ''The New York Times'' covers domestic, national, and international news, and publishes opinion pieces, investigative reports, and reviews. As one of ...
'' article on movie
box office A box office or ticket office is a place where ticket (admission), tickets are sold to the public for admission to an event. Patrons may perform the transaction at a countertop, through a hole in a wall or window, or at a Wicket gate, wicket. ...
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 Matplotlib (portmanteau of MATLAB, plot, and library) is a Plotter, plotting Library (computer science), library for the Python (programming language), Python programming language and its Numerical analysis, numerical mathematics extension NumPy. ...
and
D3.js D3.js (also known as D3, short for Data-Driven Documents) is a JavaScript library for producing dynamic, interactive data visualizations in web browsers. It makes use of Scalable Vector Graphics (SVG), HTML5, and Cascading Style Sheets (CSS) stan ...
. Marco Di Bartolomeo and Yifan Hu (2016) propose several improvements to streamgraphs, such as using 1-norm minimization instead of
2-norm In mathematics, a norm is a function from a real or complex vector space to the non-negative real numbers that behaves in certain ways like the distance from the origin: it commutes with scaling, obeys a form of the triangle inequality, and ze ...
minimization.


References


External links


Lee Byron's streamgraph_generator

RAWGraphs
Open-source visualization tool easing streamgraph generation.
StreamGraph
Open-source javascript for generating a streamgraph in SVG. Diagrams Statistical charts and diagrams {{statistics-stub