From fd15b369ff0435aeb29da007a7e39f70c5de6ea3 Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 9 Mar 2015 12:51:28 +0100 Subject: [PATCH] Added missing docs on `hiddenDates` for Graph2d (see #695) --- docs/graph2d.html | 15 +++++++++++++-- examples/graph2d/01_basic.html | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/graph2d.html b/docs/graph2d.html index 68aad11c..652a94ae 100644 --- a/docs/graph2d.html +++ b/docs/graph2d.html @@ -852,6 +852,13 @@ Graph2d.clear({options: true}); // clear options only + + fit() + none + Adjust the visible window such that it fits all items. + + + getCurrentTime() Date @@ -904,9 +911,13 @@ Graph2d.clear({options: true}); // clear options only - fit() + hiddenDates + Object none - Adjust the visible window such that it fits all items. + This option allows you to hide specific timespans from the time axis. The dates can be supplied as an object: + {start: '2014-03-21 00:00:00', end: '2014-03-28 00:00:00', [repeat:'daily']} or as an Array of these objects. The repeat argument is optional. + The possible values are (case-sensitive): daily, weekly, monthly, yearly. To hide a weekend, pick any Saturday as start and the following Monday as end + and set repeat to weekly. diff --git a/examples/graph2d/01_basic.html b/examples/graph2d/01_basic.html index 84565a9e..8b0510b8 100644 --- a/examples/graph2d/01_basic.html +++ b/examples/graph2d/01_basic.html @@ -44,7 +44,7 @@ var dataset = new vis.DataSet(items); var options = { start: '2014-06-10', - end: '2014-06-18', + end: '2014-06-18' }; var graph2d = new vis.Graph2d(container, dataset, options);