Streamgraph
This streamgraph visualizes 20 synthetic data layers across 400 time samples, using the protovis library’s `pv.Layout.Stack` with an “inside-out” ordering and “wiggle” offset to minimize slope changes. The chart renders smooth, colored areas whose thickness reveals each layer’s magnitude, with data generated by a bump function in `stream.js`. The visualization adapts to the browser window size via `pv.Scale.linear`, and each area’s fill uses a random color ramp with semi-transparent strokes.
AI-generated descriptionStreamgraphs are a generalization of stacked area graphs where the baseline is free. By shifting the baseline, it is possible to minimize the change in slope (or “wiggle”) in individual series, thereby making it easier to perceive the thickness of any given layer across the data. Byron & Wattenberg describe several streamgraph algorithms in “Stacked Graphs—Geometry & Aesthetics”, several of which are implemented by pv.Layout.Stack. As additional examples, see stacked graphs of employment and unemployment statistics.