       i++
 
     # Init color functions
+    @colorKey = @initColorKey()
     @color = @initColor()
-    @colorKey = @initColorKey()
 
     # Init the svg element
     @renderSvg(group)

    @daySizeWithSpace = @daySize + (@daySpace * 2)
    @monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    @months = []
    @highestValue = 0

    # Get the highest value from the timestampes
    _.each timestamps, (count) =>
      if count > @highestValue
        @highestValue = count

    # Loop through the timestamps to create a group of objects
    # The group of objects will be grouped based on the day of the week they are

        color

  initColor: ->
    colorRange = ['#ededed', @colorKey(0), @colorKey(1), @colorKey(2), @colorKey(3)]
    d3.scale
      .threshold()
      .domain([0, 10, 20, 30])
      .range(colorRange)

  initColorKey: ->
    d3.scale
