class_docstr: Chart internal behaviour related functions
class_docstr_tok: ["Chart","internal","behaviour","related","functions"]
docstr: Config preparation and various initialization
docstr_tok: ["Config","preparation","and","various","initialization"]
code: def __init__(self, config=None, **kwargs):
      """Config preparation and various initialization"""
      if config:
          if isinstance(config, type):
              config = config()
          else:
              config = config.copy()
      else:
          config = Config()
  
      config(**kwargs)
      self.config = config
      self.state = None
      self.uuid = str(uuid4())
      self.raw_series = []
      self.xml_filters = []
  
imports: import os
  from functools import reduce
  from uuid import uuid4
  from pygal._compat import is_list_like
  from pygal.adapters import decimal_to_float, not_zero, positive
  from pygal.config import Config, SerieConfig
  from pygal.serie import Serie
  from pygal.state import State
  from pygal.svg import Svg
  from pygal.util import compose, ident
  from pygal.view import Box, Margin
label_desc: Use image node_id 1 to create a new BaseGraph object from inherited base classes: object with example: obj = BaseGraph(config)