     text += ' a year | Unit price: €' + price
     text
 
+  renderWeekView: (data) ->   
+    data = getDays(data)
+    @renderBarGraph(data, 24 * 3600)
+    ($ '#out2').html('Week overview') 
+
   renderMonthView: (data) ->
-    $("#out").html('')
     data = getDays(data)
-    @renderBarGraph(data, 3600 * data.length)
+    @renderBarGraph(data, 24 * 3600)
     ($ '#out2').html('Month overview')
-    $("#bot_out").html(@botKwhdText)
 
   renderYearView: (data) ->
-    $("#out").html('')
     data = getMonths(data)
-    @renderBarGraph(data, 3600 * 650)
+    @renderBarGraph(data, 24 * 3600 * 366 / 12)
     ($ '#out2').html('Year overview')
-    $("#bot_out").html(@botKwhdText)
 
   renderBarGraph: (data, width) ->
     $('#axislabely').html("Energy<br/ >(kWh)")

     valueLabels: { show: false }
     grid: { show: true }
     xaxis: { mode: 'time' }

  setTime: (element) ->
    time  = $(element).attr('time')


  shift: (direction) ->
    timeWindow = @till - @from
    shiftsize  = timeWindow
    if direction == 'right'
       @from += shiftsize
       @till += shiftsize
