|
@ -13,8 +13,8 @@ var ItemSet = require('./component/ItemSet'); |
|
|
/** |
|
|
/** |
|
|
* Create a timeline visualization |
|
|
* Create a timeline visualization |
|
|
* @param {HTMLElement} container |
|
|
* @param {HTMLElement} container |
|
|
* @param {vis.DataSet | Array | google.visualization.DataTable} [items] |
|
|
|
|
|
* @param {vis.DataSet | Array | google.visualization.DataTable} [groups] |
|
|
|
|
|
|
|
|
* @param {vis.DataSet | vis.DataView | Array | google.visualization.DataTable} [items] |
|
|
|
|
|
* @param {vis.DataSet | vis.DataView | Array | google.visualization.DataTable} [groups] |
|
|
* @param {Object} [options] See Timeline.setOptions for the available options. |
|
|
* @param {Object} [options] See Timeline.setOptions for the available options. |
|
|
* @constructor |
|
|
* @constructor |
|
|
* @extends Core |
|
|
* @extends Core |
|
@ -25,7 +25,7 @@ function Timeline (container, items, groups, options) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// if the third element is options, the forth is groups (optionally);
|
|
|
// if the third element is options, the forth is groups (optionally);
|
|
|
if (!(Array.isArray(groups) || groups instanceof DataSet) && groups instanceof Object) { |
|
|
|
|
|
|
|
|
if (!(Array.isArray(groups) || groups instanceof DataSet || groups instanceof DataView) && groups instanceof Object) { |
|
|
var forthArgument = options; |
|
|
var forthArgument = options; |
|
|
options = groups; |
|
|
options = groups; |
|
|
groups = forthArgument; |
|
|
groups = forthArgument; |
|
|