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: