 
     selector = '.lightcurve'
     lc = new LightCurve(selector)
-    svg = lc.getSvg()
     csvUrl = $(selector).data 'csvSource'
     d3.csv(
         csvUrl,

            @width = @width - @margin.left - @margin.right
            @height = @height - @margin.top - @margin.bottom

        getSvg: ->
            d3.select(@selector).append('svg')
                .attr
                    width: @width + @margin.left + @margin.right
                    height: @height + @margin.top + @margin.bottom

            magnitude: +d.magnitude
        ),
        ((error, data) ->
            lc.drawData data
        )
    )
