Skip to content

Instantly share code, notes, and snippets.

@jrosenberg
jrosenberg / Sankey.js
Created December 5, 2010 03:07
Energy Flow Diagrams, 1949-2009
/**
* Constructs a new, empty Sankey layout. Layouts are not typically constructed
* directly; instead, they are added to an existing panel via
* {@link pv.Mark#add}.
*
* @class Implements a layout for Sankey diagrams. An Sankey diagram is a directed weighted
* network visualization where typically the nodes are ordered into groups/levels and hidden
* to simply revel the weighted links between them.
*
*<p>A typical definition of a Sankey diagram is a directional flow chart where the width of