code: def __init__(
      self,
      init_opts: types.Init = opts.InitOpts(),
      render_opts: types.RenderInit = opts.RenderOpts(),
  ):
      if isinstance(init_opts, dict):
          temp_opts = opts.InitOpts()
          temp_opts.update(**init_opts)
          init_opts = temp_opts
      super().__init__(init_opts=init_opts, render_opts=render_opts)
      # Change to Echarts V5 default color list
      self.colors = (
          "#5470c6 #91cc75 #fac858 #ee6666 #73c0de #3ba272 #fc8452 #9a60b4 "
          "#ea7ccc"
      ).split()
      self.default_color_n = len(self.colors)
      if init_opts.opts.get("theme") == ThemeType.WHITE:
          self.options.update(color=self.colors)
      self.options.update(
          series=[],
          legend=[{"data": [], "selected": dict()}],
          tooltip=opts.TooltipOpts().opts,
      )
      self._chart_type: Optional[str] = None
  
imports: from ..None import options
  from ..None import types
  from ..charts.base import Base
  from ..globals import RenderType, ThemeType, ToolTipFormatterType
  from ..types import Optional, Sequence
label_desc: Use image node_id 1 to create a new Chart object from inherited base classes: Base with example: obj = Chart(init_opts, render_opts)