projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that canvasx and canvasy properties are initialized from the start (#896)
[dygraphs.git]
/
src
/
datahandler
/
datahandler.js
diff --git
a/src/datahandler/datahandler.js
b/src/datahandler/datahandler.js
index
921540e
..
4af36d2
100644
(file)
--- a/
src/datahandler/datahandler.js
+++ b/
src/datahandler/datahandler.js
@@
-123,7
+123,9
@@
handler.prototype.seriesToPoints = function(series, setName, boundaryIdStart) {
xval : handler.parseFloat(item[0]),
yval : yval,
name : setName, // TODO(danvk): is this really necessary?
xval : handler.parseFloat(item[0]),
yval : yval,
name : setName, // TODO(danvk): is this really necessary?
- idx : i + boundaryIdStart
+ idx : i + boundaryIdStart,
+ canvasx: NaN, // add these so we do not alter the structure later, which slows Chrome
+ canvasy: NaN,
};
points.push(point);
}
};
points.push(point);
}