         scaledMax = ((mark.dataXMaxRel - xMin) / (xMax - xMin)) * (@canvas.width-@leftPadding)
         mark.element.style.width = (scaledMax-scaledMin) + "px"
         mark.element.style.left = (scaledMin) + "px"
+        console.log 'SCAALED [',scaledMin,',',scaledMax,']'
         mark.save(scaledMin, scaledMax)
-    # @highlightCurve(10,14) # test
 
     gradient = @ctx.createLinearGradient(0,0,60,0);
     gradient.addColorStop(0,'rgba(0,0,0,1.0)');

    # console.log 'PLOT RANGE [', val, ',', val+zoomRanges[zoomLevel], ']'
    # console.log '--------------------------------------------------------'

    if xClick < 80
      # draw triangle
      w = 10
      s = w*Math.tan(60)
      
      @ctx.beginPath()
      @ctx.moveTo(w,yClick)

                        @canvasGraph.leftPadding
    leftXPos = Math.min leftXPos,
                        ((@closestXAbove || @canvas.width + @handleWidth()) - markWidth) - @handleWidth()
    markRightX = leftXPos + markWidth
    @element.style.left = leftXPos + "px"
    @save(leftXPos, markRightX)

