all tests pass!!!!
authorDan Vanderkam <dan@dygraphs.com>
Mon, 8 Aug 2011 02:03:27 +0000 (22:03 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Mon, 8 Aug 2011 02:03:27 +0000 (22:03 -0400)
dygraph-tickers.js

index b76d0d1..81d7ce8 100644 (file)
@@ -200,7 +200,8 @@ Dygraph.newDateTicker = function(a, b, pixels, opts, dygraph, vals) {
   if (chosen >= 0) {
     return Dygraph.newGetDateAxis(a, b, chosen, opts);
   } else {
-    // TODO(danvk): signal error.
+    // this can happen if self.width_ is zero.
+    return [];
   }
 };