class_docstr: Histogram chart class
class_docstr_tok: ["Histogram","chart","class"]
docstr: Draw a bar graph for a serie
docstr_tok: ["Draw","a","bar","graph","for","a","serie"]
code: def bar(self, serie, rescale=False):
      """Draw a bar graph for a serie"""
      serie_node = self.svg.serie(serie)
      bars = self.svg.node(serie_node["plot"], class_="histbars")
      points = serie.points
  
      for i, (y, x0, x1) in enumerate(points):
          if None in (x0, x1, y) or (self.logarithmic and y <= 0):
              continue
          metadata = serie.metadata.get(i)
  
          bar = decorate(
              self.svg, self.svg.node(bars, class_="histbar"), metadata
          )
          val = self._format(serie, i)
  
          bounds = self._bar(
              serie, bar, x0, x1, y, i, self.zero, secondary=rescale
          )
          self._tooltip_and_print_values(
              serie_node, serie, bar, i, val, metadata, *bounds
          )
  
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 6 for calling the Histogram obj's underlying member method code with example usage: obj.bar(serie, rescale) without return types