           year: aggregate.year
 
   render: ->
+    console.log @model
     @$el.empty()
     svg = d3.select(@el)
       .attr('width', @chartWidth)

        memo
      , {}
      weeks = _.flatten @model.getAssignments().map (assignment) =>
        assignment.work_weeks.between(@begin, @end).models
      
      aggregates = _.reduce weeks, (memo, week) ->
        memo["#{week.get('year')}-#{week.get('cweek')}"]['estimated_hours'] += (week.get("estimated_hours") or 0)

  getData: ->
      date = new XDate()
      
      aggs = _.reduce _.range(@begin, @begin + @count * WEEK_IN_MILLISECONDS, WEEK_IN_MILLISECONDS), (memo, timestamp) ->
        date.setTime(timestamp)
        memo["#{date.getFullYear()}-#{date.getWeek()}"] =
          cweek: date.getWeek()
