assertEquals(6, g.getOption("pointSize", "D"));
assertEquals(7, g.getOption("pointSize", "E"));
};
+
+// TODO(konigsberg): move to multiple_axes.js
+perSeriesTestCase.prototype.testOldAxisSpecInNewSeriesThrows = function() {
+ var opts = {
+ series : {
+ D : { axis : {} },
+ },
+ };
+ var graph = document.getElementById("graph");
+ var data = "X,A,B,C,D,E\n0,1,2,3,4,5\n";
+ try {
+ new Dygraph(graph, data, opts);
+ } catch(e) {
+ assertEquals(
+ "Using objects for axis specification is not supported inside the 'series' option.",
+ e);
+ }
+}
}
throw "Dygraphs only supports two y-axes, indexed from 0-1."
}
+ if (typeof(axis) == "object") {
+ throw "Using objects for axis specification "
+ + "is not supported inside the 'series' option.";
+ }
if (axis) {
throw "Unknown axis : " + axis;
}