Skip to content

Timeline

Joao Maio edited this page Nov 20, 2018 · 1 revision

official docs


Observations

timeline data accessible through timeline.itemsData, items accessible through timeline.itemsData.get(id), where if id is empty, all items are returned.

the wrapper / helper functions implemented in branch timeline-plus, visjs-timeline/main.js are as follows:

name use returns
getTimelineItems (timeline, id) lists all timeline items Array
updateTimelineItem (timeline, item) change an item's properties (or create a new item) -- item requires id field, must be formatted according to timeline spec -
getLiveItems (timeline) returns all items whose ended property is not true (false / undefined) Array
addProcess (timeline, group, item) add an item with explicit group declaration, does not need to be in timeline spec
Clone this wiki locally