class_docstr: Stacked Bar graph class
docstr: Compute Y min and max
docstr_tok: ["Compute","Y","min","and","max"]
code: def _compute_box(self, positive_vals, negative_vals):
      """Compute Y min and max"""
      if self.range and self.range[0] is not None:
          self._box.ymin = self.range[0]
      else:
          self._box.ymin = (
              negative_vals
              and min(min(negative_vals), self.zero)
              or self.zero
          )
      if self.range and self.range[1] is not None:
          self._box.ymax = self.range[1]
      else:
          self._box.ymax = (
              positive_vals
              and max(max(positive_vals), self.zero)
              or self.zero
          )
  
file_path: pygal/pygal/graph/stackedbar.py
imports: from pygal.adapters import none_to_zero
  from pygal.graph.bar import Bar
label_desc: Use image node_id 2 for calling the StackedBar obj's underlying member method code with example usage: obj._compute_box(positive_vals, negative_vals) without return types