// TODO(danvk): would ['-1.0','-0.5','0.0','0.5','1.0'] be better?
assertEquals(['-1','-0.5','0','0.5','1'], getYLabels());
+ assertEquals("X,Y\n" + "0,-1\n" + "1,0\n" + "2,1\n" + "3,0\n", g.file_);
// Go up to 2
data += "4,2\n";
});
// This is what the output should be:
- // assertEquals(["00:05:00", "00:05:06", "00:05:12", "00:05:18", "00:05:24", "00:05:30", "00:05:36", "00:05:42", "00:05:48", "00:05:54"], getXLabels());
+ assertEquals(["00:05:00","00:05:12","00:05:24","00:05:36","00:05:48"], getXLabels());
// This is what it is:
- assertEquals(['5','5.1','5.2','5.3','5.4','5.5', '5.6', '5.7', '5.8', '5.9'], getXLabels());
+ // assertEquals(['5','5.1','5.2','5.3','5.4','5.5', '5.6', '5.7', '5.8', '5.9'], getXLabels());
};
/*
var graph = document.getElementById("graph");
var g = new Dygraph(graph, data, opts);
- // 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(['x0','x2','x4','x6','x8'], getXLabels());
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};
var g = new Dygraph(graph, data, opts);
// This is the existing behavior:
- assertEquals(['y0','y1','y2','y3','y4','y5','y6','y7','y8'], getXLabels());
+ assertEquals(["0","2","4","6","8"], getXLabels());
// This is the correct behavior:
- // assertEquals(['x0','x1','x2','x3','x4','x5','x6','x7','x8'], getXLabels());
+ // assertEquals(['x0','x2','x4','x6','x8'], getXLabels());
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};
var g = new Dygraph(graph, data, opts);
// This is the existing behavior:
- assertEquals(['y0','y1','y2','y3','y4','y5','y6','y7','y8'], getXLabels());
+ // 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(['x0','x2','x4','x6','x8'], getXLabels());
assertEquals(['y0','y2','y4','y6','y8','y10','y12','y14','y16','y18'], getYLabels());
};