Example of Remote Data in Javascript Diagram Control

/
/
Remote Data

This sample demonstrates binding remote data with the diagram using the Data Manager support.

More Details...

Description

This example shows how to generate a diagram from remote data such as REST APIs. The dataSourceSettings property can be used to map an external data source with the diagram control. The id property of dataSourceSettings can be used to define a unique field of an external data. The parentId property can be used to define the relationship between objects. The dataManager property can be used to fetch data from web services. Injecting Module The diagram component’s features are segregated into individual feature-wise modules. To generate diagrams from an external data source, inject DataBinding module using Diagram.Inject(DataBinding) method. To automatically arrange the objects in a hierarchical structure, inject DataBinding module using Diagram.Inject(DataBinding) method.