mxGraph Reloaded Examples

See also the GitHub repo

Auto layout

This example demonstrates running and animating a layout algorithm after every change to a graph.
show source

Collapse

This example demonstrates changing the style of a cell based on its collapsed state.
show source

Constituent

This example demonstrates using cells as parts of other cells.
show source

Folding

This example demonstrates using a layout to implement a nested group structure.
show source

Groups

This example demonstrates using cells as parts of other cells.
show source

Handles

This example demonstrates using mxHandle to change custom styles interactively.
show source

Layers

This example demonstrates using multiple layers to contain cells.
show source

Orgchart

show source

Radial Tree (Hierarchical) Layout

This example demonstrates the use of the hierarchical and organic layouts. Note that the hierarchical layout requires another script tag in the head of the page.
show source

Swimlanes

This example demonstrates using swimlanes for pools and lanes and adding cells and edges between them. This also demonstrates using the stack layout as an automatic layout.
show source

Tree

This example demonstrates folding of subtrees in a acyclic graph (tree).
show source