     y_norm = []
     for y, idx in [@data.y...]
       y_norm[idx] =  ( parseFloat(y) - @smallestY ) / ( @largestY - @smallestY )
-
     # update max/min values (still needed?)
     @smallestX = Math.min @data.x...
     @smallestY = Math.min @data.y...


    @dataLength = Math.min @data.x.length, @data.y.length

    @data_orig = []
    for xValue, idx in [@data.x...]
      @data_orig[idx] = @data.x[idx]
      @data.x[idx] = xValue - @smallestX

    # normalize data

        @ctx.strokeStyle = tickColor
        @ctx.stroke()

        # bottom tickmarks
        @ctx.beginPath()
        @ctx.moveTo(tick_x,@canvas.height)
        @ctx.lineTo(tick_x,@canvas.height-tickMinorLength)
        @ctx.lineWidth = tickWidth
        @ctx.strokeStyle = tickColor
        @ctx.stroke()

      if i % tickMajorInterval is 0 and i isnt 0
        tick_x = ((+i - xMin) / (xMax - xMin)) * @canvas.width
        @ctx.font = '10pt Arial'
