         graph: @graph,
         element: @$('.timeline')[0]
 
+      @createCompactionAnnotations(compactionsSeries) if compactionsSeries
+
       @legend = new Rickshaw.Graph.Legend
         graph: @graph
         element: @$(".legend")[0]

      ));

  createCompactionAnnotations: (compactions) ->
    metric = compactions.metric
    values = metric.getValues()
    start = Math.round(metric.getBegin() / 1000)

        graph: @graph
        legend: @legend

      @graph.render()

      @colorizeAnnotations(compactionsSeries.color) if compactionsSeries

      @trigger "graph_rendered"

      $(".timeline").delegate(".annotation", 'mouseover',( (e) ->
