mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-09-21 18:51:32 +02:00
Fix hover position for area charts.
This commit is contained in:
parent
a23eb0792c
commit
a620eec75d
@ -16,6 +16,7 @@ class Morris.Area extends Morris.Line
|
|||||||
row._y = for y in row.y
|
row._y = for y in row.y
|
||||||
total += (y || 0)
|
total += (y || 0)
|
||||||
@transY(total)
|
@transY(total)
|
||||||
|
row._ymax = row._y[row._y.length - 1]
|
||||||
|
|
||||||
# draw the data series
|
# draw the data series
|
||||||
#
|
#
|
||||||
|
@ -1042,7 +1042,7 @@
|
|||||||
row = _ref[_i];
|
row = _ref[_i];
|
||||||
row._x = this.transX(row.x);
|
row._x = this.transX(row.x);
|
||||||
total = 0;
|
total = 0;
|
||||||
_results.push(row._y = (function() {
|
row._y = (function() {
|
||||||
var _j, _len1, _ref1, _results1;
|
var _j, _len1, _ref1, _results1;
|
||||||
_ref1 = row.y;
|
_ref1 = row.y;
|
||||||
_results1 = [];
|
_results1 = [];
|
||||||
@ -1052,7 +1052,8 @@
|
|||||||
_results1.push(this.transY(total));
|
_results1.push(this.transY(total));
|
||||||
}
|
}
|
||||||
return _results1;
|
return _results1;
|
||||||
}).call(this));
|
}).call(this);
|
||||||
|
_results.push(row._ymax = row._y[row._y.length - 1]);
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
};
|
};
|
||||||
|
2
morris.min.js
vendored
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user