This sample demonstrates binding remote data with the diagram using the Data Manager support.
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 into services
. To
automatically arrange the objects in a hierarchical structure,
inject
DataBinding
module into services
.