For those of you interested in some of the maths behind drawing Sankey diagrams properly, you might want to read this article on ‘Programmatic Rendering of Directed, Weighted Graphs’ submitted for SVG Open 2003 by Philip A. Mansfield and Mark Ambachtsheer of SchemaSoft.

The authors consider Sankey diagrams as directed weighted graphs but they “can be difficult, time-consuming, and uninteresting to render by hand”. However, “Sankey diagrams do add an indisputable expressive power to a standard mathematical rendering of a graph…[and] when professionally constructed, Sankey diagrams represent flow in a manner … can be understood by anyone, instantly.”

Three diagrams are presented: a simple directed, weighted graph representing a candy factory, a pen-sketched B/W Sankey diagram, and the corresponding Sankey diagram in SVG format, created using data in XML format and XSLT style sheet transformation.

Candy factory: the raw materials quantities for the production of chocolate bars and caramel core candies are shown with a simple weighted, directed graph (Source: Mansfield/Ambachtsheer. Programmatic Rendering of Directed, Weighted Graphs, 2003)The same candy factory with a hand-drawn Sankey diagram (Source: Mansfield/Ambachtsheer. Programmatic Rendering of Directed, Weighted Graphs, 2003)Sankey diagram for the candy factory. A vector graphic has been created using XML and XSLT. (Source: Mansfield/Ambachtsheer. Programmatic Rendering of Directed, Weighted Graphs, 2003)

They also have some interesting details on graphical problems, such as overlay, edge layout, width of Sankey arrows in curves, etc. Basically all that stuff that developers of professional Sankey software tools have to cope with.

2 Responses to “Sankey Diagrams are Directed Weighted Graphs”

  1. andy.edmonds.be › links for 2008-10-09 Says:

    [...] Sankey Diagrams » Blog Archive » Sankey Diagrams are Directed Weighted Graphs (tags: sankey implementation graph) [...]

  2. Tagz | "Sankey Diagrams are Directed Weighted Graphs" | Comments Says:

    [...] [upmod] [downmod] Sankey Diagrams are Directed Weighted Graphs (www.sankey-diagrams.com) 1 points posted 7 months, 1 week ago by jeethu tags diagram [...]

Leave a Reply