diff --git a/docs/graph2d/index.html b/docs/graph2d/index.html index b70f0ebe..469908f6 100644 --- a/docs/graph2d/index.html +++ b/docs/graph2d/index.html @@ -145,7 +145,6 @@
DataSet containing groups. The available options and the method of construction
- are described in section Data Format.
+ are described in section Data Format.
var graph = new vis.Graph2d(container [, data] [, groups] [, options]);For backwards compatibility, groups and options can be interchanged. @@ -245,7 +244,7 @@
- Graph2d can load data from an Array, a DataSet or a DataView.
+ Graph2d can load data from an Array, a DataSet (offering 2 way data binding), or a DataView (offering one way data binding).
Objects are added to this DataSet by using the add() function.
Data points must have properties x, y, and z,
and can optionally have a property style and filter.
diff --git a/docs/graph3d/index.html b/docs/graph3d/index.html
index 426a41a7..43a5e2c8 100644
--- a/docs/graph3d/index.html
+++ b/docs/graph3d/index.html
@@ -199,7 +199,7 @@
- Graph3d can load data from an Array, a DataSet or a DataView.
+ Graph3d can load data from an Array, a DataSet (offering 2 way data binding), or a DataView (offering 1 way data binding).
JSON objects are added to this DataSet by using the add() function.
Data points must have properties x, y, and z,
and can optionally have a property style and filter.
diff --git a/docs/timeline/index.html b/docs/timeline/index.html
index 79487509..6dc5cc9c 100644
--- a/docs/timeline/index.html
+++ b/docs/timeline/index.html
@@ -209,19 +209,20 @@
- The Timeline uses regular Arrays and Objects as data format.
- Data items can contain the properties start,
+ For items, the Timeline accepts an Array, a DataSet (offering 2 way data binding),
+ or a DataView (offering 1 way data binding).
+ Items are regular objects and can contain the properties start,
end (optional), content,
group (optional), className (optional),
editable (optional), and style (optional).
- A table is constructed as: + A DataSet is constructed as:
-var items = [
+var items = new vis.DataSet([
{
start: new Date(2010, 7, 15),
end: new Date(2010, 8, 2), // end is optional
@@ -343,7 +344,9 @@ var items = [
Groups
- Like the items, groups are regular JavaScript Arrays and Objects.
+ For the items, groups can be an Array, a DataSet (offering 2 way data binding),
+ or a DataView (offering 1 way data binding).
+
Using groups, items can be grouped together.
Items are filtered per group, and displayed as
@@ -1120,9 +1123,9 @@ document.getElementById('myTimeline').onclick = function (event) {
none
Set both groups and items at once. Both properties are optional. This is a convenience method for individually calling both setItems(items) and setGroups(groups).
Both items and groups can be an Array with Objects,
- a DataSet, or a DataView. For each of the groups, the items of the
- timeline are filtered on the property group, which
- must correspond with the id of the group.
+ a DataSet (offering 2 way data binding), or a DataView (offering 1 way data binding).
+ For each of the groups, the items of the timeline are filtered on the
+ property group, which must correspond with the id of the group.
@@ -1131,9 +1134,9 @@ document.getElementById('myTimeline').onclick = function (event) {
none
Set a data set with groups for the Timeline.
groups can be an Array with Objects,
- a DataSet, or a DataView. For each of the groups, the items of the
- timeline are filtered on the property group, which
- must correspond with the id of the group.
+ a DataSet (offering 2 way data binding), or a DataView (offering 1 way data binding).
+ For each of the groups, the items of the timeline are filtered on the
+ property group, which must correspond with the id of the group.
@@ -1142,7 +1145,7 @@ document.getElementById('myTimeline').onclick = function (event) {
none
Set a data set with items for the Timeline.
items can be an Array with Objects,
- a DataSet, or a DataView.
+ a DataSet (offering 2 way data binding), or a DataView (offering 1 way data binding).