var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
// The expected gridlines
var yGridlines = [ 0, 20, 40, 60, 80, 100, 120 ];
// The expected gridlines
var yGridlines = [ 0, 20, 40, 60, 80, 100, 120 ];
// Check that the grid was drawn.
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
// Check that the grid was drawn.
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
CanvasAssertions.assertLineDrawn(htx, p1, p2, attrs);
}
}
CanvasAssertions.assertLineDrawn(htx, p1, p2, attrs);
}
}
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
// The expected gridlines
var yGridlines = [ 20, 40, 60, 80, 100, 120 ];
// The expected gridlines
var yGridlines = [ 20, 40, 60, 80, 100, 120 ];
for ( var i = 0; i < gridlines[axis].length; i++) {
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
// Check the grid colors.
for ( var i = 0; i < gridlines[axis].length; i++) {
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
// Check the grid colors.
gridColors[axis], Util.samplePixel(g.hidden_, x, y));
}
}
gridColors[axis], Util.samplePixel(g.hidden_, x, y));
}
}
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
// The expected gridlines
var yGridlines = [ 20, 40, 60, 80 ];
// The expected gridlines
var yGridlines = [ 20, 40, 60, 80 ];
for ( var i = 0; i < gridlines[axis].length; i++) {
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
// Ignore the alpha value
for ( var i = 0; i < gridlines[axis].length; i++) {
y = halfDown(g.toDomYCoord(gridlines[axis][i], axis));
// Ignore the alpha value
var drawnPixeldown2 = Util.samplePixel(g.hidden_, x, y - 2).slice(0, 3);
var drawnPixeldown1 = Util.samplePixel(g.hidden_, x, y - 1).slice(0, 3);
var drawnPixel = Util.samplePixel(g.hidden_, x, y).slice(0, 3);
var drawnPixeldown2 = Util.samplePixel(g.hidden_, x, y - 2).slice(0, 3);
var drawnPixeldown1 = Util.samplePixel(g.hidden_, x, y - 1).slice(0, 3);
var drawnPixel = Util.samplePixel(g.hidden_, x, y).slice(0, 3);
+ y, emptyColor, drawnPixelup2);
break;
case 1: // y2 with 1 pixel width
+ y, emptyColor, drawnPixelup2);
break;
case 1: // y2 with 1 pixel width
y = halfDown(g.plotter_.area.y) + 10;
for ( var i = 0; i < xGridlines.length; i++) {
x = halfUp(g.toDomXCoord(xGridlines[i]));
y = halfDown(g.plotter_.area.y) + 10;
for ( var i = 0; i < xGridlines.length; i++) {
x = halfUp(g.toDomXCoord(xGridlines[i]));
emptyColor, Util.samplePixel(g.hidden_, x - 4, y).slice(0, 3));
emptyColor, Util.samplePixel(g.hidden_, x - 4, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 3, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 3, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 2, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 2, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 1, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x - 1, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x + 1, y).slice(0, 3));
gridColor, Util.samplePixel(g.hidden_, x + 1, y).slice(0, 3));
emptyColor, Util.samplePixel(g.hidden_, x + 2, y).slice(0, 3));
}
emptyColor, Util.samplePixel(g.hidden_, x + 2, y).slice(0, 3));
}
labels : [ "X", "Left", "Right" ],
colors : [ "rgba(0,0,0,0)", "rgba(0,0,0,0)" ],
series : {
labels : [ "X", "Left", "Right" ],
colors : [ "rgba(0,0,0,0)", "rgba(0,0,0,0)" ],
series : {
gridLineColor : "#0000ff",
gridLinePattern : [ 10, 10 ]
}
gridLineColor : "#0000ff",
gridLinePattern : [ 10, 10 ]
}
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
[ 5, 110, 333 ] ];
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
// The expected gridlines
var yGridlines = [ 0, 20, 40, 60, 80, 100, 120 ];
// The expected gridlines
var yGridlines = [ 0, 20, 40, 60, 80, 100, 120 ];
y = halfDown(g.toDomYCoord(yGridlines[i], 0));
// Step through the pixels of the line and test the pattern.
for (x = halfUp(g.plotter_.area.x); x < g.plotter_.area.w; x++) {
y = halfDown(g.toDomYCoord(yGridlines[i], 0));
// Step through the pixels of the line and test the pattern.
for (x = halfUp(g.plotter_.area.x); x < g.plotter_.area.w; x++) {
+ y, [ 0, 0, 255 ], drawnPixel);
break;
case 1: // no fill
+ y, [ 0, 0, 255 ], drawnPixel);
break;
case 1: // no fill
+ y, [ 0, 0, 0 ], drawnPixel);
break;
}
}
}
+ y, [ 0, 0, 0 ], drawnPixel);
break;
}
}
}