Fix statements in for() in tooltips's getAveragePosition.

This commit is contained in:
Alexey Kopleman Dvurechensky 2016-06-22 14:46:00 +03:00 committed by Alexey "Kopleman" Dvurechensky
parent ebaade5d16
commit a9e0f2cae6

View File

@ -116,7 +116,7 @@ module.exports = function(Chart) {
var x = 0,
y = 0;
for (i = 0, len - xPositions.length; i < len; ++i) {
for (i = 0; i < xPositions.length; ++i) {
x += xPositions[i];
y += yPositions[i];
}