Skip to main content
100%

D3 in Action Chapter 5 - Example 9

✓ Published0🌍 Public
WWeikerWT
Last edited Jun 22, 2018
Created on Jun 22, 2018

This example shows a streamgraph built from six time-series movie revenue columns in a CSV file. The chart uses the `d3.layout.stack()` layout with silhouette offset and inside-out ordering to arrange the layered areas symmetrically around a central axis. Each movie series is rendered as a filled SVG path via `d3.svg.area()` with basis interpolation, colored using `d3.scale.category10()`. The x-axis maps days from 0 to 10, while the y-axis scales the stacked heights from 0 to 100, producing a flowing, organic visualization of changing relative values over time.

AI-generated description

This is the code for Chapter 5, Figure 21 from D3.js in Action showing how to use d3.layout.stack() to create a streamgraph.

forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block: <a href='http://bl.ocks.org/emeeks/862f941999ae2c05e4f6'>Ch. 5, Fig. 21 - D3.js in Action</a>

mit Licensed

Similar vizzes