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: Function computes plots data for given params
  
  Parameters
  -----------
  params : dict
      Keys of this dict are params types (model, observation, variable, dataset)
      and values are corresponding params values (class Param).
  
  Returns
  --------
  PlotContainer object
docstr_tok: ["Function","computes","plots","data","for","given","params","Parameters","--","--","--","--","--","-","params",":","dict","Keys","of","this","dict","are","params","types","(","model",",","observation",",","variable",",","dataset",")","and","values","are","corresponding","params","values","(","class","Param",")",".","Returns","--","--","--","--","PlotContainer","object"]
code: def fit(self, params):
      """Function computes plots data for given params
  
      Parameters
      -----------
      params : dict
          Keys of this dict are params types (model, observation, variable, dataset)
          and values are corresponding params values (class Param).
  
      Returns
      --------
      PlotContainer object
      """
      required_params = {}
      for p in self.__class__.info.get("requiredParams"):
          self.check_param(p, params.get(p))
      for p in self.__class__.info.get("requiredParams"):
          required_params[p] = params.get(p)
          self.params[p] = params.get(p).get_label()
      self._fit(**required_params)
      return self
  
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 2 for calling the PlotContainer obj's underlying member method code with example usage: obj.fit(params) and returns: self