mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
Merge pull request #497 from fran6co/patch-1
Fixes copy&paste error in event
This commit is contained in:
commit
93c7441bbc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue