New to Kendo UI for jQuery? Download free 30-day trial


The layout of the Diagram is its automatic organization based on the way its shapes are connected.

The Diagram layout is also called an "incidence structure". The Layout() method is the gateway to a variety of layout algorithms.

The following example demonstrates how the Layout method generates a random Diagram and calls the method.

// Call the layout method.

The default layout algorithm is the top-down tree layout. To change the default types to another type and subtype, insert it in the layout options. For more information, refer to the layout API reference.

diagram.layout({ type: "ForceDirected" });

See Also

In this article