       .attr("height", height)
       .call(@yAxis)
 
-    @
-
-  setScales: ->
-
-    height = @model.get('height')
-    data = @model.get('data')
-
-    @scales =
-
-      y: d3.scale.linear()
-        .domain([0, @model.get('maxY')])
-        .range([0, @model.get('height')])
-
-      yAxis: d3.scale.linear()
-        .domain([0, @model.get('maxY')])
-        .range([height, 0])
-
-    @yAxis = d3.svg.axis()
-      .scale(@scales.yAxis)
-      .orient("right")
-      .ticks(3)
-
-    @
-
-  render: ->
-
-    @setScales()
-
-    @initialRender() unless @svg
-
     @line = d3.svg.line()
       .x(@lineX)
       .y(@lineY)


    @render()

  initialRender: ->

    yAxisAreaWidth = 100
    width = @model.get('width')

        .attr("class", "line")
        .attr("d", @line(@model.get('data')))

    @

  transition: ->

