 valueheaders = []
 logscale = false
 duration = 2000
+ease = 'cubic-in-out'
 first = true
 
 powerOfTen = (d) -> d / Math.pow(10, Math.ceil(Math.log(d) / Math.LN10 - 1e-12)) == 1

  if svg.select('.x').empty()
    svg.append('g').call(setupXAxis)
  else
    svg.select('.y').transition().duration(duration).call(setupXAxis)

  if svg.select('.y').empty()
    svg.append('g').call(setupYAxis)

    enter
      .attr
        r: 0
      .transition().duration(duration).ease(ease)
      .attr
        r: (d) -> r(rvalue(d[selected]))

  plot.exit()
    .transition().duration(duration).ease(ease)
    .attr
      r: 0
    .remove()
