code: def bar(self, serie, rescale=False):
          
          serie_node = self.svg.serie(serie)
          bars = self.svg.node(serie_node['plot'], class_="bars")
          if rescale and self.secondary_series:
              points = self._rescale(serie.points)
          else:
              points = serie.points
  
          for i, (x, y) in enumerate(points):
              if None in (x, y) or (self.logarithmic and y <= 0):
                  continue
              metadata = serie.metadata.get(i)
              val = self._format(serie, i)
  
              bar = decorate(
                  self.svg, self.svg.node(bars, class_='bar'), metadata
              )
  
              x_, y_, width, height = self._bar(
                  serie, bar, x, y, i, self.zero, secondary=rescale
              )
  
              self._confidence_interval(
                  serie_node['overlay'], x_ + width / 2, y_, serie.values[i],
                  metadata
              )
  
              self._tooltip_and_print_values(
                  serie_node, serie, bar, i, val, metadata, x_, y_, width, height
              )
docs: Draw a bar graph for a serie