     else
       from = "-#{@config.settings.timeRange} hours"
     series = graph.series.concat(@config.settings.graphiteAdditionalSeries)
-    "#{@config.sources.graphite}/render/?width=#{@imageWidth}&height=#{@imageHeight}&target=#{series.join(',')}&from=#{from}&graphOnly=false&hideLegend=true&areaMode=first&lineWidth=2"
+    "#{@config.sources.graphite}/render/?width=#{@imageWidth}&height=#{@imageHeight}&target=#{series.join('&target=')}&from=#{from}&graphOnly=false&hideLegend=true&areaMode=first&lineWidth=2"
 
   getCactiURL: (graph) ->
     endTime = Math.floor((new Date().getTime())/1000)


  setUp: =>
    @graphLoaded = false
    @updateWindowSize()
    $(window).resize(@updateWindowSize)
    @currentGraph = 0

    "#{@config.sources.cacti}/graph_image.php?action=zoom&local_graph_id=#{graph.id}&rra_id=0&graph_height=#{@imageHeight}&graph_width=#{@imageWidth}&graph_nolegend=1&graph_end=#{endTime}&graph_start=#{startTime}&view_type=tree&notitle=1"

  loadConfig: ->
    url = $.url().param('config') ? 'config.json'

    $.ajax(url, {'dataType': 'json'})
      .fail((x, status, error) -> 
          $('#container').html("Error loading config: #{status} (#{error})"))
      .success((data) => 
