class_docstr: <<< Tree diagrams >>>
  
  Tree diagrams are used primarily to visualize tree data structures,
  which are special hierarchical types with unique root nodes, left subtrees,
  and right subtrees.
code: def add(
      self,
      series_name: str,
      data: types.Sequence[types.Union[opts.TreeItem, dict]],
      *,
      layout: str = "orthogonal",
      symbol: types.JSFunc = "emptyCircle",
      symbol_size: types.Union[
          types.JSFunc, types.Numeric, types.Sequence
      ] = 7,
      orient: str = "LR",
      pos_top: types.Optional[str] = None,
      pos_left: types.Optional[str] = None,
      pos_bottom: types.Optional[str] = None,
      pos_right: types.Optional[str] = None,
      collapse_interval: types.Numeric = 0,
      edge_shape: str = "curve",
      edge_fork_position: str = "50%",
      is_roam: bool = False,
      is_expand_and_collapse: bool = True,
      initial_tree_depth: types.Optional[types.Numeric] = None,
      label_opts: types.Label = opts.LabelOpts(),
      leaves_label_opts: types.Label = opts.LabelOpts(),
      tooltip_opts: types.Tooltip = None,
      itemstyle_opts: types.ItemStyle = None,
  ):
      _data = self._set_collapse_interval(data, collapse_interval)
      self.options.get("series").append(
          {
              "type": ChartType.TREE,
              "name": series_name,
              "data": _data,
              "left": pos_left,
              "right": pos_right,
              "top": pos_top,
              "bottom": pos_bottom,
              "symbol": symbol,
              "symbolSize": symbol_size,
              "edgeShape": edge_shape,
              "edgeForkPosition": edge_fork_position,
              "roam": is_roam,
              "expandAndCollapse": is_expand_and_collapse,
              "initialTreeDepth": initial_tree_depth,
              "layout": layout,
              "orient": orient,
              "label": label_opts,
              "leaves": {"label": leaves_label_opts},
              "tooltip": tooltip_opts,
              "itemStyle": itemstyle_opts,
          }
      )
      return self
  
imports: from ...None import options
  from ...None import types
  from ...charts.chart import Chart
  from ...globals import ChartType
label_desc: Use image node_id 2 for calling the Tree obj's underlying member method code with example usage: obj.add(series_name, data) and returns: self