From: Dan Vanderkam Date: Mon, 14 Dec 2009 13:55:04 +0000 (-0800) Subject: more illustration of dateWindow problems X-Git-Tag: v1.0.0~780 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3d29302c089ef77abb202f202aa170dd9c65061c;p=dygraphs.git more illustration of dateWindow problems --- diff --git a/dygraph.js b/dygraph.js index 016f106..473e55d 100644 --- a/dygraph.js +++ b/dygraph.js @@ -975,7 +975,7 @@ Dygraph.prototype.GetXAxis = function(start_time, end_time, granularity) { if (granularity < Dygraph.MONTHLY) { // Generate one tick mark for every fixed interval of time. var spacing = Dygraph.SHORT_SPACINGS[granularity]; - var format = '%d%b'; // e.g. "1 Jan" + var format = '%d%b'; // e.g. "1Jan" // TODO(danvk): be smarter about making sure this really hits a "nice" time. if (granularity < Dygraph.HOURLY) { start_time = spacing * Math.floor(0.5 + start_time / spacing); diff --git a/tests/dateWindow.html b/tests/dateWindow.html index 76141fe..3ba009f 100644 --- a/tests/dateWindow.html +++ b/tests/dateWindow.html @@ -10,9 +10,12 @@

dateWindow is set to something other than an x-value in the data set. - Grid lines should still go through data points.

+ Grid lines should still go through data points. In the second chart, there + should be lines going off the edge of the chart (to data points out of + view).

-
+
+
+ +