 
   redrawChart: ->
     data = @getData()
+    busiestWeek = _.max data, (week) ->
+      week.total
+    @heightScale = d3.scale.linear()
+      .domain([0, busiestWeek['total']])
+      .rangeRound([0, @height - 20])
     svg = d3.select(@el)
     groups = svg.selectAll("g.week").data(data)
         .attr("data-timestamp", (d) -> d.beginning_of_week)

    
    # Each bar is actually contained in a g itself
    # That g also contains the number of hours for the bar as text
    data = @getData()

    groups = weeks.selectAll(".bar")
      .data(data)

    @

  redrawBar: (options) ->
    busiestWeek = _.max options, (week) ->
      week.total
    svg = d3.select('svg g.weeks')
    # Find the <g> that groups the two <rect> elements used for the total and the proposed hours
    # and assign the new data to it
