     @area = d3.svg.area().x((d) ->
       x(d.date)
     ).y0(@height).y1((d) ->
-      y(d.commits = d.commits ? d.additions ? d.deletions)
+      xa = d.commits = d.commits ? d.additions ? d.deletions
+      console.log(xa)
+      y(xa)
     ).interpolate("basis")
   create_brush: ->
     @brush = d3.svg.brush().x(@x).on("brushend", @update_content)
   draw_path: (data) ->
     @svg.append("path").datum(data).attr("class", "area").attr("d", @area)
   add_brush: ->
-    @svg.append("g").attr("class", "selection").call(@brush).selectAll("rect").attr("height", @height);
+    @svg.append("g").attr("class", "selection").call(@brush).selectAll("rect").attr("height", @height)
   update_content: =>
     ContributorsGraph.set_x_domain(if @brush.empty() then @x_max_domain else @brush.extent())
     $("#brush_change").trigger('change')

class window.ContributorsGraph
  MARGIN:
    top: 20
    right: 20 
    bottom: 30 
    left: 50
  x_domain: null
  y_domain: null

    else
      @width = 870

    @height = 200
    @x = null
    @y = null
    @x_axis = null
