From 551da771132ec4806f246580f05ba3551a5835e9 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Tue, 23 Sep 2014 12:04:28 +0200 Subject: [PATCH] updated docs and examples with new constructors. --- docs/graph2d.html | 3 ++- docs/timeline.html | 14 +++++++++----- examples/graph2d/03_groups.html | 2 +- examples/graph2d/04_rightAxis.html | 2 +- examples/graph2d/05_bothAxis.html | 2 +- examples/graph2d/06_interpolation.html | 2 +- examples/graph2d/09_external_legend.html | 2 +- examples/graph2d/11_barsSideBySideGroups.html | 2 +- examples/graph2d/12_customRange.html | 2 +- examples/graph2d/14_toggleGroups.html | 12 ++++++------ 10 files changed, 24 insertions(+), 19 deletions(-) diff --git a/docs/graph2d.html b/docs/graph2d.html index 67414a99..5f8b8f0a 100644 --- a/docs/graph2d.html +++ b/docs/graph2d.html @@ -113,7 +113,8 @@ Groups is a vis DataSet containing groups. The available options and the method of construction are described in section Data Format.

-
var graph = new vis.Graph2d(container [, data] [, options] [,groups]);
+
var graph = new vis.Graph2d(container [, data] [, groups] [, options]);
+For backwards compatibility, groups and options can be interchanged.

Data, options and groups can be set or changed later on using the functions diff --git a/docs/timeline.html b/docs/timeline.html index fb02ad90..33587026 100644 --- a/docs/timeline.html +++ b/docs/timeline.html @@ -111,17 +111,21 @@ The constructor of the Timeline is vis.Timeline

var timeline = new vis.Timeline(container, items, options);
+or when using groups: +
var timeline = new vis.Timeline(container, items, groups, options);
- -The constructor accepts three parameters: +The constructor accepts four parameters: