Parts, flows and polar
Pie and donut charts
Pie with exploded slice and labels; donut with centre text.
Code of this example · cargo run --release -p plot-pie-donut
Treemap and sunburst
Hierarchical data as a squarified treemap and as a sunburst.
Code of this example · cargo run --release -p plot-treemap-sunburst
Funnel and gauge
A sales funnel and a gauge with colored ranges.
Code of this example · cargo run --release -p plot-funnel-gauge
Sankey diagram
Energy flows between sources, carriers and uses.
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).
#![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.
Code of this example · cargo run --release -p plot-polar-radar