var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
- // TODO(danvk): this is not correct!
+ // This is the existing behavior:
assertEquals(['y0','y1','y2','y3','y4','y5','y6','y7','y8'], getXLabels());
+ // This is the correct behavior:
+ // assertEquals(['x0','x1','x2','x3','x4','x5','x6','x7','x8'], getXLabels());
+
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
- // TODO(danvk): this is not correct!
+ // This is the existing behavior:
assertEquals(['y0','y1','y2','y3','y4','y5','y6','y7','y8'], getXLabels());
+ // This is the correct behavior:
+ // assertEquals(['x0','x1','x2','x3','x4','x5','x6','x7','x8'], getXLabels());
+
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
- // TODO(danvk): this is not correct!
+ // This is the existing behavior:
assertEquals(['y0','y1','y2','y3','y4','y5','y6','y7','y8'], getXLabels());
+ // This is the correct behavior:
+ // assertEquals(['x0','x1','x2','x3','x4','x5','x6','x7','x8'], getXLabels());
+
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};