Merge pull request #497 from fran6co/patch-1

Fixes copy&paste error in event
This commit is contained in:
Jelte Fennema 2014-09-23 12:28:55 +02:00
commit 93c7441bbc

View file

@ -441,7 +441,7 @@ class Morris.Grid extends Morris.EventEmitter
.attr('stroke-width', @options.goalStrokeWidth)
drawEvent: (event, color) ->
x = Math.floor(@transX(goal)) + 0.5
x = Math.floor(@transX(event)) + 0.5
if not @options.horizontal
path = "M#{x},#{@yStart}V#{@yEnd}"
else