class_docstr: <<< Calendar Diagram >>>
  
  The calendar diagram is mainly used to represent the size of a value by
  color and must be used in conjunction with the visualMap component.
  Two categories of axes must be used in rectangular coordinates.
code: def add(
      self,
      series_name: str,
      yaxis_data: types.Sequence,
      *,
      type_: types.Union[str, ChartType] = ChartType.HEATMAP,
      calendar_index: types.Optional[types.Numeric] = None,
      label_opts: types.Label = opts.LabelOpts(
          is_show=False, position="inside"
      ),
      calendar_opts: types.Union[
          types.Calendar, types.List[types.Calendar]
      ] = None,
      tooltip_opts: types.Tooltip = None,
      itemstyle_opts: types.ItemStyle = None,
      visualmap_opts: types.VisualMap = None,
      **other_calendar_opts,
  ):
      if calendar_opts:
          self.options.update(calendar=calendar_opts)
      if visualmap_opts:
          self.options.update(visualMap=visualmap_opts)
  
      self._append_legend(series_name)
      self.options.get("series").append(
          {
              "type": type_,
              "coordinateSystem": "calendar",
              "calendarIndex": calendar_index,
              "name": series_name,
              "data": yaxis_data,
              "label": label_opts,
              "tooltip": tooltip_opts,
              "itemStyle": itemstyle_opts,
              **other_calendar_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 Calendar obj's underlying member method code with example usage: obj.add(series_name, yaxis_data) and returns: self