     @setWrapperSize()
     @setLineSize()
 
+  resize: =>
+    @recalc()
     @drawLine()

    _.forEach(JSON.parse($("#json-stats").text()), (e, i) -> data.push(new Object({'x': i, 'y': e.users_osu})))

    @svgEndCircle = @svgWrapper.append 'circle'
      .classed 'chart__hover-mark chart__hover-mark--small chart__line--yellow', true
      .attr 'r', 2

    @loadData data


      .classed 'chart__wrapper', true

    @svgLine = @svgWrapper.append 'path'
      .attr 'fill', 'none'
      .attr 'stroke', '#ffcc22'
      .attr 'stroke-width', '1'
      .attr 'opacity', 0
      # .classed 'chart__line chart__line--thin chart__line--yellow', true


    @line = d3.line()
      .curve d3.curveMonotoneX
