projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24f7710
)
s/RGBColor/RGBColorParser in the tests directory.
author
Robert Konigsberg
<konigsberg@google.com>
Sat, 2 Feb 2013 21:55:02 +0000
(13:55 -0800)
committer
Robert Konigsberg
<konigsberg@google.com>
Sat, 2 Feb 2013 21:55:02 +0000
(13:55 -0800)
tests/linear-regression-addseries.html
patch
|
blob
|
blame
|
history
tests/linear-regression-fractions.html
patch
|
blob
|
blame
|
history
tests/linear-regression.html
patch
|
blob
|
blame
|
history
tests/plotters.html
patch
|
blob
|
blame
|
history
diff --git
a/tests/linear-regression-addseries.html
b/tests/linear-regression-addseries.html
index
7c7646d
..
5e79860
100644
(file)
--- a/
tests/linear-regression-addseries.html
+++ b/
tests/linear-regression-addseries.html
@@
-100,7
+100,7
@@
// Darken the series by 50% to generate its regression.
var label = labels[i] + " Regression";
new_labels.push(label);
// Darken the series by 50% to generate its regression.
var label = labels[i] + " Regression";
new_labels.push(label);
- var c = new RGBColor(orig_colors[i - 1]);
+ var c = new RGBColor
Parser
(orig_colors[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));
diff --git
a/tests/linear-regression-fractions.html
b/tests/linear-regression-fractions.html
index
6f8071b
..
253fa60
100644
(file)
--- a/
tests/linear-regression-fractions.html
+++ b/
tests/linear-regression-fractions.html
@@
-110,7
+110,7
@@
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));
diff --git
a/tests/linear-regression.html
b/tests/linear-regression.html
index
8f971f4
..
d7c3700
100644
(file)
--- a/
tests/linear-regression.html
+++ b/
tests/linear-regression.html
@@
-104,7
+104,7
@@
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));
diff --git
a/tests/plotters.html
b/tests/plotters.html
index
91c3a7c
..
9b800ec
100644
(file)
--- a/
tests/plotters.html
+++ b/
tests/plotters.html
@@
-61,9
+61,9
@@
var points = e.points;
var y_bottom = e.dygraph.toDomYCoord(0);
var points = e.points;
var y_bottom = e.dygraph.toDomYCoord(0);
- // The RGBColor class is provided by rgbcolor.js, which is
+ // The RGBColor
Parser
class is provided by rgbcolor.js, which is
// packed in with dygraphs.
// packed in with dygraphs.
- var color = new RGBColor(e.color);
+ var color = new RGBColor
Parser
(e.color);
color.r = Math.floor((255 + color.r) / 2);
color.g = Math.floor((255 + color.g) / 2);
color.b = Math.floor((255 + color.b) / 2);
color.r = Math.floor((255 + color.r) / 2);
color.g = Math.floor((255 + color.g) / 2);
color.b = Math.floor((255 + color.b) / 2);
@@
-274,7
+274,7
@@
var candleData = "Date,Open,Close,High,Low\n" +
var fillColors = [];
var strokeColors = g.getColors();
for (var i = 0; i < strokeColors.length; i++) {
var fillColors = [];
var strokeColors = g.getColors();
for (var i = 0; i < strokeColors.length; i++) {
- var color = new RGBColor(strokeColors[i]);
+ var color = new RGBColor
Parser
(strokeColors[i]);
color.r = Math.floor((255 + color.r) / 2);
color.g = Math.floor((255 + color.g) / 2);
color.b = Math.floor((255 + color.b) / 2);
color.r = Math.floor((255 + color.r) / 2);
color.g = Math.floor((255 + color.g) / 2);
color.b = Math.floor((255 + color.b) / 2);