 
             d3.select(label)
               .attr('transform', 'translate('+ el.translate + ')')
-              .attr('data-moved', el.translate[0])
 
           # The current label becomes prevLabel in the next iteration.
           return label

      average_width = @x(total_value / @sector_list.models.length)

      sector_label = @svg.selectAll("g.sector_label")
        .data(@sector_list.models, (d) -> d.get 'key' )
        # .transition().duration(500)
        .attr('transform', (d) => "translate(#{@x(d.total_value() / 2)}, #{@label_offset})")
        .select('text')

        previous.left - current.right if previous.left < current.right

    moveArrows: =>
      x = @x
      offset = 0

      d3.selectAll('line.sector_line').each (d, i) ->
        total  = x(d.total_value())
        moveX2 = offset + d3.transform(d3.select($('g.sector_label')[i])
          .attr('transform'))
          .translate[0]

        offset += total

        d3.select(this)
          .attr('x1', offset - (total / 2))
          .attr('x2', moveX2)

# Pseudo-collection of nodes
#
