AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

[enum] anychart.enums.TreeFillingMethodImprove this Doc

Data fill method.
ValueDescriptionExample
asTableUsing this method means that the original data will be treated as a linear array of objects each of which can be given its own ID and the ID of the parent.
Sample for data fill method as table.
 var rawData = [
   {
     id: _opt_value_,
     parent: _opt_value_,
     someData: _some_data_
   },

   ...,

   {
     id: _opt_value_,
     parent: _opt_value_,
     someData: _some_data_
   }
 ];
asTreeUsing this method means that the original data will be treated as an array of objects with a hierarchical tree structure.
Sample for data fill method as tree.
 var rawData = [
   {
     _Object_,
     children: [ ... ]
   },

   ...,

   {
     _Object_,
     children: [
       {
         _Object_,
         children: [ ... ]
       },
       ...
     ]
   }
 ];