From 3d29302c089ef77abb202f202aa170dd9c65061c Mon Sep 17 00:00:00 2001
From: Dan Vanderkam
Date: Mon, 14 Dec 2009 05:55:04 -0800
Subject: [PATCH] more illustration of dateWindow problems
---
dygraph.js | 2 +-
tests/dateWindow.html | 35 ++++++++++++++++++++++++++---------
2 files changed, 27 insertions(+), 10 deletions(-)
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).
-
+
+
+
+