     @legend = new PG.Legend @legendContainer, @graphs, {
       onToggle: (seriesStates) =>
         @seriesStates = seriesStates
-        @options.dataSelectionChanged(@rangeStart, @rangeEnd, @getActiveSeriesNames())
+        @options.dataSelectionChanged(@rangeStart, @rangeEnd, @getActiveSeriesNames(), @seriesColors)
     }
 
   updateSeries: =>

    @element.addClass "#{@options.className}_loading-details"
    @rangeStart = start
    @rangeEnd = end
    @options.dataSelectionChanged(start, end, @getActiveSeriesNames())
    $.ajax
      dataType: "jsonp"
      url: "#{@url}"

        @renderOverviewGraph(series)
        @updateSeries()
        @updateLegend() if @options.legend
        @options.dataSelectionChanged @rangeStart, @rangeEnd, @getActiveSeriesNames(), @seriesColors
