C3 AI Documentation Home

C3 AI Console Reference: c3Tree

Bring up a JSON tree representation of the argument object.

Parameters

NameTypeMandatoryDescription
dataObjectMandatoryData results to be displayed
expandstringOptionalHow much to expand the tree initially ('root' or 'all')

Examples

Display the results of a data fetch as a tree:

JavaScript
c3Tree(SmartBulb.fetch())

See also

Was this page helpful?