From c64cdb9166170e2db3cf0cf91229a6e78cd9c2cc Mon Sep 17 00:00:00 2001
From: jos
Date: Tue, 22 Apr 2014 16:39:56 +0200
Subject: [PATCH] DataSet constructor now accepts initial data and options
---
HISTORY.md | 7 ++++++-
docs/dataset.html | 7 ++++++-
examples/timeline/08_edit_items.html | 3 +--
examples/timeline/09_order_groups.html | 6 ++----
src/DataSet.js | 18 ++++++++++++++----
src/timeline/component/Panel.js | 2 +-
test/dataset.js | 15 +++++++++++++++
7 files changed, 45 insertions(+), 13 deletions(-)
diff --git a/HISTORY.md b/HISTORY.md
index 5bc3f276..3a4c3a23 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,4 +1,4 @@
-vis.js history
+# vis.js history
http://visjs.org
@@ -15,6 +15,11 @@ http://visjs.org
- Minor bug fixes.
- More examples added.
+### DataSet
+
+- A DataSet can now be constructed with initial data, like
+ `new DataSet(data, options)`.
+
## 2014-04-18, version 0.7.4
diff --git a/docs/dataset.html b/docs/dataset.html
index cbb2ec8f..477d26a4 100644
--- a/docs/dataset.html
+++ b/docs/dataset.html
@@ -107,7 +107,7 @@ console.log('formatted items', items);
-var data = new vis.DataSet(options)
+var data = new vis.DataSet([data] [, options])
@@ -116,6 +116,11 @@ var data = new vis.DataSet(options)
Data Manipulation.
+
+ The parameter datacode> is optional and can be an Array or
+ Google DataTable with items.
+
+
The parameter options is optional and is an object which can
contain the following properties:
diff --git a/examples/timeline/08_edit_items.html b/examples/timeline/08_edit_items.html
index fe431ce9..a8c1bd88 100644
--- a/examples/timeline/08_edit_items.html
+++ b/examples/timeline/08_edit_items.html
@@ -18,8 +18,7 @@