Timleine.withEvents()
This creates the events for the Timeline object. Multiple events (in one or more bands) can be created. Events are passed as an array of event objects.
The withEvents() function has 2 required parameters: start
, label
.
Optional additional parameters are added as a comma-delimited list of named objects. Each event can named objects. For example:
// theTimeline_timeline is the timeline object already theTimeline_timeline.withEvents([
[start:"Fri, 4 Mar 2011 15:59:00 +0000", band:0, y:0.516129, label:"v5.8.0"},
{start:"Fri, 1 Apr 2011 15:59:00 +0000", band:1, y:0.454094, label:"v5.8.1"}
];