code: def _bar(self, serie, parent, x0, x1, y, i, zero, secondary=False):
          
          x, y = self.view((x0, y))
          x1, _ = self.view((x1, y))
          width = x1 - x
          height = self.view.y(zero) - y
          series_margin = width * self._series_margin
          x += series_margin
          width -= 2 * series_margin
  
          r = serie.rounded_bars * 1 if serie.rounded_bars else 0
          alter(
              self.svg.transposable_node(
                  parent,
                  'rect',
                  x=x,
                  y=y,
                  rx=r,
                  ry=r,
                  width=width,
                  height=height,
                  class_='rect reactive tooltip-trigger'
              ), serie.metadata.get(i)
          )
          return x, y, width, height
docs: Internal bar drawing function