Angular Diagram - nodes.autoLayout

Specifies an auto-layout algorithm that the widget uses to build a diagram.

Type:

String

|

Object

Default Value: 'tree'
Accepted Values: 'off' | 'tree' | 'layered'

The layout option is in effect when a diagram is bound to a data source using the nodes option.

View Demo

orientation

Specifies the diagram layout orientation.

Type:

String

Accepted Values: 'auto' | 'vertical' | 'horizontal'

type

Specifies the diagram layout type.

Type:

String

Accepted Values: 'off' | 'tree' | 'layered'

When the type option is set to layered or tree the shape coordinates specified by the leftExpr and topExpr options are ignored.