         $(this).tipsy("hide")
         tseriesPanel.remove("flow" + i)
 
-
-    $('line').tipsy
+    $('g.flows line').tipsy
       gravity: 'w'
       opacity: 0.9
       html: true
       trigger: "manual"
-      title: -> flowTooltip(d3.select(this).data()[0])
+      title: -> flowTooltip(d3.select(this).datum())
+
+
+
 
 
 


  showFlowsOf = (bbl) ->
    flows = svg.selectAll("g.flows")
    d = d3.select(bbl).datum() #data()?[0]
    ###
    ffwscale = d3.scale.linear()
      .range([0, rscale.range()[1]/2])



    if (d.inlinks?)
      inflow = flows.selectAll("line.in")
          .data(d.inlinks, (d) -> d.source[conf.nodeIdAttr]) #.filter (d) -> flowLineValue(d) > 0)

      inflow.exit().remove()

      inflow.enter().append("svg:line")
          .attr("class", "in")
          .attr("opacity", 0)
          .transition()
            .duration(300)
