         graph: @graph
         legend: @legend
 
-      @createCompactionAnnotations(compactionsSeries) if compactionsSeries
       @graph.render()
+
       @colorizeAnnotations(compactionsSeries.color) if compactionsSeries
+
       @trigger "graph_rendered"
 
       $(".timeline").delegate(".annotation", 'mouseover',( (e) ->

        graph: @graph,
        element: @$('.timeline')[0]

      @legend = new Rickshaw.Graph.Legend
        graph: @graph
        element: @$(".legend")[0]

      ));

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