class_docstr: Histogram chart class
class_docstr_tok: ["Histogram","chart","class"]
docstr: Compute x/y min and max and x/y scale and set labels
docstr_tok: ["Compute","x\/y","min","and","max","and","x\/y","scale","and","set","labels"]
code: def _compute(self):
      """Compute x/y min and max and x/y scale and set labels"""
      if self.xvals:
          xmin = min(self.xvals)
          xmax = max(self.xvals)
          xrng = xmax - xmin
      else:
          xrng = None
  
      if self.yvals:
          ymin = min(min(self.yvals), self.zero)
          ymax = max(max(self.yvals), self.zero)
          yrng = ymax - ymin
      else:
          yrng = None
  
      for serie in self.all_series:
          serie.points = serie.values
  
      if xrng:
          self._box.xmin, self._box.xmax = xmin, xmax
      if yrng:
          self._box.ymin, self._box.ymax = ymin, ymax
  
      if self.range and self.range[0] is not None:
          self._box.ymin = self.range[0]
  
      if self.range and self.range[1] is not None:
          self._box.ymax = self.range[1]
  
file_path: pygal/pygal/graph/histogram.py
imports: from pygal.graph.bar import Bar
  from pygal.graph.dual import Dual
  from pygal.util import alter, cached_property, decorate
label_desc: Use image node_id 7 for calling the Histogram obj's underlying member method code with example usage: obj._compute() without return types