     initialize: =>
       @view = D3.sankey.view
       @series = @view.series
-      @left = @view.node_list.get @get('left')
-      @right = @view.node_list.get @get('right')
+      @left  = @view.node_map[@get('left')]
+      @right = @view.node_map[@get('right')]
       if @get('gquery')
         @gquery = new ChartSerie
           gquery_key: @get('gquery')

    # returns an array of the other nodes that belong to the same column. This
    # is used by the +y_offset+ method to calculate the right node position
    siblings: =>
      items = _.groupBy(@view.node_list.models, (node) -> node.get('column'))
      items[@get 'column']

    label: => @get('label') || @get('id')


    # this method is called every time we're updating the chart
    refresh: =>
      max_height = @max_column_value()

      # update the scaling function
      @y.domain([0, max_height * 1.25])
        .range([0, @height * .90])

      # update the node label
      @nodes.data(@node_list, (d) -> d.get('id'))
        .attr("data-tooltip", (d) =>
          h = "<strong>
            #{d.label()}: #{Metric.autoscale_value d.value(), 'PJ', 2}
