C3 AI Console Reference: c3Tree
Bring up a JSON tree representation of the argument object.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
data | Object | Mandatory | Data results to be displayed |
expand | string | Optional | How much to expand the tree initially ('root' or 'all') |
Examples
Display the results of a data fetch as a tree:
JavaScript
c3Tree(SmartBulb.fetch())