       data = @prepare_data()
       # update the scales as needed
       max_value = d3.max(data, (d) -> d.offset)
-      @y = @y.domain([0, max_value])
-      @inverted_y = @inverted_y.domain([0, max_value])
+      @y.domain([0, max_value])
+      @inverted_y.domain([0, max_value])
 
       # animate the y-axis
       @svg.selectAll(".y_axis").transition().call(@y_axis.scale(@inverted_y))

      @height = 360 - (margins.top + margins.bottom)
      # height of the series section
      @series_height = 190
      @column_width = (@width - 15) / (@series.length + 1) * 0.6
      @svg = d3.select(@container_selector())
        .append("svg:svg")
        .attr("height", @height + margins.top + margins.bottom)

        .call(@x_axis)

      # let's rotate the labels
      offset = @column_width / 2
      @svg.selectAll('.x_axis text')
        .attr('text-anchor', 'end')
        .attr('transform', "rotate(-90) translate(-10, #{-offset})")

      @svg.selectAll('rect.serie')
        .data(@prepare_data(), (d) -> d.key)
