X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fx-axis-formatter.html;h=a2f78270a9fa83c343ee0929a01e43a9a43a3523;hb=514a10f302043e48459a79806775b6925dc9a7b5;hp=b008ad855001783be11b2522342da3c154ab6721;hpb=48e614acf3084b9836803f8b014bf0e65f1ca119;p=dygraphs.git
diff --git a/tests/x-axis-formatter.html b/tests/x-axis-formatter.html
index b008ad8..a2f7827 100644
--- a/tests/x-axis-formatter.html
+++ b/tests/x-axis-formatter.html
@@ -1,16 +1,12 @@
-
X Axis Label Formatting
-
-
+
@@ -36,25 +32,25 @@
"2009/07/12 06:00:00,4,6"
}
- new Dygraph(
+ var g1 = new Dygraph(
document.getElementById("normal"),
HourlyData()
);
- new Dygraph(
+ var g2 = new Dygraph(
document.getElementById("offby2"),
HourlyData(),
{
axes: {
x: {
- axisLabelFormatter: function(d, gran) {
- return Dygraph.dateAxisFormatter(new Date(d.getTime() + 7200*1000), gran);
+ axisLabelFormatter: function(d, gran, opts) {
+ return Dygraph.dateAxisLabelFormatter(new Date(d.getTime() + 7200*1000), gran, opts);
}
}
}
});
- new Dygraph(
+ var g3 = new Dygraph(
document.getElementById("seconds"),
HourlyData(),
{