Skip to content

Commit

Permalink
Fix hover position for area charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
oesmith committed Dec 19, 2012
1 parent a23eb07 commit a620eec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/morris.area.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Morris.Area extends Morris.Line
row._y = for y in row.y
total += (y || 0)
@transY(total)
row._ymax = row._y[row._y.length - 1]

# draw the data series
#
Expand Down
5 changes: 3 additions & 2 deletions morris.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a620eec

Please sign in to comment.