document.body.innerHTML = "<div id='graph'></div>";
};
-GridPerAxisTestCase.origFunc = Dygraph.getContext;
+var origFunc = Dygraph.getContext;
GridPerAxisTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(GridPerAxisTestCase.origFunc(canvas));
+ return new Proxy(origFunc(canvas));
};
};
GridPerAxisTestCase.prototype.tearDown = function() {
- Dygraph.getContext = GridPerAxisTestCase.origFunc;
+ Dygraph.getContext = origFunc;
};
GridPerAxisTestCase.prototype.testIndependentGrids = function() {
width : 120,
height : 320,
errorBars : false,
- drawXGrid : false,
- drawXAxis : false,
- drawYAxis : false,
labels : [ "X", "Left", "Right" ],
colors : [ "rgba(0,0,0,0)", "rgba(0,0,0,0)" ],
series : {
}
},
axes : {
+ x : {
+ drawGrid: false,
+ drawAxis: false,
+ },
y : {
+ drawAxis : false,
gridLineColor : "#0000ff",
gridLinePattern : [ 10, 10 ]
}