Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Parts, flows and polar

Pie and donut charts

Pie with exploded slice and labels; donut with centre text.

Pie and donut charts

Code of this example · cargo run --release -p plot-pie-donut


Treemap and sunburst

Hierarchical data as a squarified treemap and as a sunburst.

Treemap and sunburst

Code of this example · cargo run --release -p plot-treemap-sunburst


Funnel and gauge

A sales funnel and a gauge with colored ranges.

Funnel and gauge

Code of this example · cargo run --release -p plot-funnel-gauge


Sankey diagram

Energy flows between sources, carriers and uses.

Sankey diagram

Code of this example · cargo run --release -p plot-sankey


Network graphs

A force-directed network with node groups, and the imports between the modules of five packages as an arc diagram and with hierarchical edge bundling (edges bent through their package, so related links run together).

Network graph Arc diagram and hierarchical edge bundling
#![allow(unused)]
fn main() {
ax.arc_diagram(&names, edges.clone()).groups(groups.clone()).group_names(packages);
ax.edge_bundling(&names, groups, edges).group_names(packages).tension(0.85);
}

Code of this example · cargo run --release -p plot-network


Polar, radar and rose charts

Polar curves, a radar (spider) chart and a wind rose.

Polar, radar and rose charts

Code of this example · cargo run --release -p plot-polar-radar