         return true
     return false
 
+
   toCanvasXPoint: (e) -> e.pageX - @canvas.getBoundingClientRect().left - window.scrollX
 
 module?.exports = CanvasGraph: CanvasGraph, Marks: Marks, Mark: Mark

      @ctx.fillRect(x+@leftPadding,y,2,2)
    if @marks
      for mark in @marks.all
        scaledMin = ((mark.dataXMinRel - xMin) / (xMax - xMin)) * (@canvas.width-@leftPadding)
        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,']'

    @save(leftXPos, markRightX)

  save: (markLeftX, markRightX) ->
    console.log 'save(): [',markLeftX-@canvasGraph.leftPadding,',',markRightX-@canvasGraph.leftPadding,']'

    #canvas coords
    @canvasXMin = markLeftX
    @canvasXMax = markRightX

    #data coords
    @dataXMinRel = @canvasGraph.toDataXCoord(@canvasXMin-@canvasGraph.leftPadding)
    @dataXMaxRel = @canvasGraph.toDataXCoord(@canvasXMax-@canvasGraph.leftPadding)
    @dataXMinGlobal = @dataXMinRel + @originalMin    
    @dataXMaxGlobal = @dataXMaxRel + @originalMin


  onMouseOver: (e) =>
    @element.style.backgroundColor = 'rgba(252,69,65,.6)'
