     top = r.set()
     cuday = 0
     cumonth = ""
-    offsetX = 20
-    offsetY = 60
+    @offsetX = 20
+    @offsetY = 60
     barWidth = Math.max(graphWidth, @days.length * 20 + 320)
-    scrollLeft = cw
+    @scrollLeft = cw
     @raphael = r
     r.rect(0, 0, barWidth, 20).attr fill: "#222"
     r.rect(0, 20, barWidth, 20).attr fill: "#444"


      if cumonth isnt day[1]
        # Months
        r.text(offsetX + mm * 20, 11, day[1])
          .attr(
            font: "12px Monaco, monospace"
            fill: "#EEE"

        cumonth = day[1]

    for commit in @commits
      x = @offsetX + 20 * commit.time
      y = @offsetY + 10 * commit.space

      @drawDot(x, y, commit)

      @drawLines(x, y, commit)

      @appendLabel(x, y, commit.refs)  if commit.refs

      @appendAnchor(top, commit, x, y)

      @markCommit(x, y, commit, graphWidth)

    top.toFront()
    @element.scrollLeft @scrollLeft
    @bindEvents()

  bindEvents: ->
