timeline.js

Draggable timeline.


Objects

Methods

CSS Classes


OAT.Timeline(contentDiv, optObj)

Creates a Timeline inside contentDiv. optObj may contain these options:

OAT.Timeline::addBand(name, color, label)

Adds a data band to chart. The band is identified by name and labeled with label.

OAT.Timeline::addEvent(bandName, startTime, endTime, content, color)

Adds new event to Timeline, resp. to its band bandName. endTime can be false, when the event has no duration. content is a HTML element; color is a background color for time strip (only when endTime != false).

OAT.Timeline::draw()

Draws the timeline.