projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUG FIX: Fixed indentation in respect to the jslint rules.
[dygraphs.git]
/
gallery
/
linear-regression.js
diff --git
a/gallery/linear-regression.js
b/gallery/linear-regression.js
index
f381e4c
..
11caff2
100644
(file)
--- a/
gallery/linear-regression.js
+++ b/
gallery/linear-regression.js
@@
-88,7
+88,7
@@
Gallery.register(
var p1 = g.toDomCoords(x1, y1);
var p2 = g.toDomCoords(x2, y2);
var p1 = g.toDomCoords(x1, y1);
var p2 = g.toDomCoords(x2, y2);
- var c = new RGBColor(g.getColors()[i - 1]);
+ var c = new RGBColor
Parser
(g.getColors()[i - 1]);
c.r = Math.floor(255 - 0.5 * (255 - c.r));
c.g = Math.floor(255 - 0.5 * (255 - c.g));
c.b = Math.floor(255 - 0.5 * (255 - c.b));
c.r = Math.floor(255 - 0.5 * (255 - c.r));
c.g = Math.floor(255 - 0.5 * (255 - c.g));
c.b = Math.floor(255 - 0.5 * (255 - c.b));
@@
-112,6
+112,7
@@
Gallery.register(
labels: ['X', 'Y1', 'Y2'],
underlayCallback: drawLines,
drawPoints: true,
labels: ['X', 'Y1', 'Y2'],
underlayCallback: drawLines,
drawPoints: true,
+ drawAxesAtZero: true,
strokeWidth: 0.0
}
);
strokeWidth: 0.0
}
);