       .range([@height, 0])
       .domain(d3.extent(@subject.flux))
 
-
     @svg = @opts.selector.append('svg')
         .attr('width', @opts.width - 10)
         .attr('height', @opts.height - 10)
       .append('g')
         .attr('transform', "translate(#{margin.left}, #{margin.top})")
         .call(d3.behavior.zoom().x(@x).y(@y).scaleExtent([1, 8]).on("zoom", @zoom))
-
     
     @xAxis = d3.svg.axis()
       .scale(@x)

        .attr('stroke', "blue")
        .attr('fill', 'none')

  emissionLines: (redshiftCorrected=true) =>
    for name, line of @spectralLines
      multiplier = if redshiftCorrected then (1 + line.redshift) else 1
      @svg.append("line")

  constructor: (selector) ->
    super selector
    @cache = {}
    @on 'next', @next
    @on 'prev', @prev

