projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec100a
)
Missed an RGBColor-->RGBColorParser change.
author
Adil
<adilflorida@gmail.com>
Thu, 13 Dec 2012 22:24:28 +0000
(17:24 -0500)
committer
Adil
<adilflorida@gmail.com>
Thu, 13 Dec 2012 22:24:28 +0000
(17:24 -0500)
gallery/linear-regression.js
patch
|
blob
|
blame
|
history
diff --git
a/gallery/linear-regression.js
b/gallery/linear-regression.js
index
43daecd
..
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 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));