Browse Source

Added missing docs on `hiddenDates` for Graph2d (see #695)

v3_develop
jos 9 years ago
parent
commit
fd15b369ff
2 changed files with 14 additions and 3 deletions
  1. +13
    -2
      docs/graph2d.html
  2. +1
    -1
      examples/graph2d/01_basic.html

+ 13
- 2
docs/graph2d.html View File

@ -852,6 +852,13 @@ Graph2d.clear({options: true}); // clear options only
</td> </td>
</tr> </tr>
<tr>
<td>fit()</td>
<td>none</td>
<td>Adjust the visible window such that it fits all items.
</td>
</tr>
<tr> <tr>
<td>getCurrentTime()</td> <td>getCurrentTime()</td>
<td>Date</td> <td>Date</td>
@ -904,9 +911,13 @@ Graph2d.clear({options: true}); // clear options only
</tr> </tr>
<tr> <tr>
<td>fit()</td>
<td>hiddenDates</td>
<td>Object</td>
<td>none</td> <td>none</td>
<td>Adjust the visible window such that it fits all items.
<td>This option allows you to hide specific timespans from the time axis. The dates can be supplied as an object:
<code>{start: '2014-03-21 00:00:00', end: '2014-03-28 00:00:00', [repeat:'daily']}</code> or as an Array of these objects. The repeat argument is optional.
The possible values are (case-sensitive): <code>daily, weekly, monthly, yearly</code>. To hide a weekend, pick any Saturday as start and the following Monday as end
and set repeat to weekly.
</td> </td>
</tr> </tr>

+ 1
- 1
examples/graph2d/01_basic.html View File

@ -44,7 +44,7 @@
var dataset = new vis.DataSet(items); var dataset = new vis.DataSet(items);
var options = { var options = {
start: '2014-06-10', start: '2014-06-10',
end: '2014-06-18',
end: '2014-06-18'
}; };
var graph2d = new vis.Graph2d(container, dataset, options); var graph2d = new vis.Graph2d(container, dataset, options);
</script> </script>

Loading…
Cancel
Save