Fix hover position for area charts.

This commit is contained in:
Olly Smith 2012-12-19 22:35:49 +00:00
parent a23eb0792c
commit a620eec75d
3 changed files with 5 additions and 3 deletions

View File

@ -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
#

View File

@ -1042,7 +1042,7 @@
row = _ref[_i];
row._x = this.transX(row.x);
total = 0;
_results.push(row._y = (function() {
row._y = (function() {
var _j, _len1, _ref1, _results1;
_ref1 = row.y;
_results1 = [];
@ -1052,7 +1052,8 @@
_results1.push(this.transY(total));
}
return _results1;
}).call(this));
}).call(this);
_results.push(row._ymax = row._y[row._y.length - 1]);
}
return _results;
};

2
morris.min.js vendored

File diff suppressed because one or more lines are too long