chevron_right Demos chevron_right Simple Tree Builder (Array)
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Simple Tree Builder (Array)

This demo automatically builds a graph from business data using TreeBuilder. The business data is stored in an Array in JSON format.

See the Developer's Guide section on creating a Graph from Business Data and especially TreeBuilder for an in-depth explanation of the relevant concepts.

See also the GraphBuilder Tutorial for a step-by-step guide on configuring the TreeBuilder class, loading data, and customizing graph visualizations.

TreeBuilder provides a specific set of methods that allow to configure the builder on the given data source.

createRootNodesSource
Registers a data source that represents the root nodes.
TreeNodesSource.createChildNodesSource
Registers a data source as child entities of a TreeNodesSource.
TreeNodesSource.addChildNodesSource
Binds a collection of child data objects of a TreeNodesSource.