projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop pixel skipping optimization w/ annotations, too
[dygraphs.git]
/
dygraph-canvas.js
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
4606dfb
..
04c53b8
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-786,7
+786,9
@@
DygraphCanvasRenderer.prototype._renderLineChart = function() {
prevX = point.canvasx;
prevY = point.canvasy;
} else {
prevX = point.canvasx;
prevY = point.canvasy;
} else {
- // TODO(danvk): figure out why this conditional is necessary.
+ // TODO(antrob): skip over points that lie on a line that is already
+ // going to be drawn. There is no need to have more than 2
+ // consecutive points that are collinear.
if (strokeWidth) {
ctx.beginPath();
ctx.strokeStyle = color;
if (strokeWidth) {
ctx.beginPath();
ctx.strokeStyle = color;