From ad9515f810131991ff323f6437623cc15a36c492 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 4 Nov 2014 17:27:46 -0500 Subject: [PATCH] Add alias for old method name; revert daylight-savings.html --- dygraph.js | 2 ++ tests/daylight-savings.html | 15 ++++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dygraph.js b/dygraph.js index 735c99a..3447493 100644 --- a/dygraph.js +++ b/dygraph.js @@ -244,6 +244,8 @@ Dygraph.dateAxisLabelFormatter = function(date, granularity, opts) { } } }; +// alias in case anyone is referencing the old method. +Dygraph.dateAxisFormatter = Dygraph.dateAxisLabelFormatter; /** * Return a string version of a JS date for a value label. This respects the diff --git a/tests/daylight-savings.html b/tests/daylight-savings.html index ddd8557..0e28162 100644 --- a/tests/daylight-savings.html +++ b/tests/daylight-savings.html @@ -31,9 +31,7 @@
-

This chart shows a continuous line going across the "fall back" EST/EDT event. - You may need to switch your computer's time zone to Eastern to see this. - The x-axis tick marks go from 01:00 → 01:55 and then back to 01:00.

+

This chart shows a continuous line going across the "fall back" EST/EDT event. You may need to switch your computer's time zone to Eastern to see this. The x-axis tick marks go from 01:00 → 01:55 and then back to 01:00.


@@ -41,8 +39,7 @@
-

This chart shows a continuous series which crosses a "spring forward". - The x-axis ticks should skip from 1:50AM to 3:00AM.

+

This chart shows a continuous series which crosses a "spring forward". The x-axis ticks should skip from 1:55AM to 3:00AM.