class_docstr: Class representing a chart.
  
  Parameters
  ----------
  arena : dalex.Arena
      Instance of Arena.
  cache : bool
      If this object is allowed to use cache when requesting resources
  
  Attributes
  --------
  arena : Arena
      Instance of dalex.Arena
  name : str
      Display name of chart
  plot_type : str
      Identifier of chart type
  plot_component : str
      Identifier of Arena's component that should render this chart
  plot_category : str
      Name of category of chart
  params : dict
      Dictionary with required param types as keys and param labels as values.
      This attribute is set when calling fit.
  data : dict
      Results of computations are placed there
  progress : float
      If progress is supprted, then value should be between [0,1]. For other situations -1 value must be set.
      Progress of plot container is based of progress of used resources at the moment of calling fit method.
      This value will not be updated.
  use_cache : bool
      If this object is allowed to use cache when requesting resources
docstr: Changes plot component to message and sets data with provided message
  
  Parameters
  -----------
  msg : str
      Text of message
  msg_type : str
      Type of message. One of ['info', 'error']
docstr_tok: ["Changes","plot","component","to","message","and","sets","data","with","provided","message","Parameters","--","--","--","--","--","-","msg",":","str","Text","of","message","msg_type",":","str","Type","of","message",".","One","of","[","'info","'",",","'error","'","]"]
code: def set_message(self, msg, msg_type="info"):
      """Changes plot component to message and sets data with provided message
  
      Parameters
      -----------
      msg : str
          Text of message
      msg_type : str
          Type of message. One of ['info', 'error']
      """
      if msg_type != "info" and msg_type != "error":
          raise Exception("Invalid message type")
      self.plot_component = "Message"
      self.data = {"message": msg, "type": msg_type}
  
file_path: DALEX/python/dalex/dalex/arena/_plot_container.py
imports: from ._option_base import OptionBase
  from .params import ModelParam, DatasetParam, VariableParam, ObservationParam
label_desc: Use image node_id 4 for calling the PlotContainer obj's underlying member method code with example usage: obj.set_message(msg, msg_type) without return types