O intervalo visível da linha do tempo é limitado nesta demonstração.
$render = '';
$resposta = '';
dc.cw("Timeline", "widget_linhaDeTempo", {
id: "linhaDeTempo"
, data: [{
id: "1"
, start: new Date('2015-05-25T00:00:00+02:00')
, end: null
, group: null
, className: null
, content: "Primeiro"
}, {
id: "2"
, start: new Date('2015-05-26T00:00:00+02:00')
, end: null
, group: null
, className: null
, content: "Último"
}]
, currentTime: new Date('2021-11-11T18:11:11.762+01:00')
, preloadFactor: 0.0
, opts: {
autoResize: true
, height: "180px"
, width: "100%"
, orientation: {
axis: 'bottom'
, item: 'bottom'
}
, editable: {
add: false
, remove: false
, updateTime: false
, updateGroup: false
, overrideItems: false
}
, selectable: true
, min: new Date('2015-01-01T00:00:00+01:00')
, max: new Date('2015-12-31T00:00:00+01:00')
, zoomable: true
, moveable: true
, zoomMin: 86400000
, zoomMax: 8035200000
, margin: {
axis: 10
, item: {
horizontal: 10
, vertical: 10
}
}
, groupOrder: "content"
, stack: true
, showCurrentTime: true
, showMajorLabels: true
, showMinorLabels: true
, locale: "pt_BR"
, clickToUse: false
, showTooltips: true
, tooltip: {
followMouse: false
, overflowMethod: 'flip'
, delay: 500
}
}
});