class_docstr: Chart internal behaviour related functions
class_docstr_tok: ["Chart","internal","behaviour","related","functions"]
docstr: Set an attribute on the class or in the state if there is one
docstr_tok: ["Set","an","attribute","on","the","class","or","in","the","state","if","there","is","one"]
code: def __setattr__(self, name, value):
      """Set an attribute on the class or in the state if there is one"""
      if name.startswith("__") or getattr(self, "state", None) is None:
          super(BaseGraph, self).__setattr__(name, value)
      else:
          setattr(self.state, name, value)
  
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 2 for calling the BaseGraph obj's underlying member method code with example usage: obj.__setattr__(name, value) without return types