« Documentation
Example 2 »
Example 1 - load json data
In this example we load the data using the data option.
As you can see, the data is an array of objects.
- The name property defines the name of the node.
- The id is the unique id of the node.
- The children property is an array of nodes.