class_docstr: Chart internal behaviour related functions
class_docstr_tok: ["Chart","internal","behaviour","related","functions"]
docstr: Get an attribute from the class or from the state if there is one
docstr_tok: ["Get","an","attribute","from","the","class","or","from","the","state","if","there","is","one"]
code: def __getattribute__(self, name):
      """Get an attribute from the class or from the state if there is one"""
      if (
          name.startswith("__")
          or name == "state"
          or getattr(self, "state", None) is None
          or name not in self.state.__dict__
      ):
          return super(BaseGraph, self).__getattribute__(name)
      return getattr(self.state, name)
  
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 3 for calling the BaseGraph obj's underlying member method code with example usage: obj.__getattribute__(name) and returns: getattr, super