You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
Hello and first, thanks for this really useful tool :),
I think i have identified a bug: when setting both options showMajorLabels to false and timeAxis to { scale: 'week', step: 1 }, there is a display bug for vertical lines where months were supposed to be. this seems to just be a display bug.
on version 4.20.0 of the Timeline
Here you can see that the div for week 22 appears two times
here is sample code to reproduce :
var container = document.getElementById('example-timeline');
// Create a DataSet with data
var data = new vis.DataSet([{
id: 1,
content: 'First event',
start: '2014-08-01'
}, {
id: 2,
content: 'Pi and Mash',
start: '2014-08-08'
}, {
id: 3,
content: 'Wikimania',
start: '2014-08-08',
end: '2014-08-10'
}, {
id: 4,
content: 'Something else',
start: '2014-08-20'
}, {
id: 5,
content: 'Summer bank holiday',
start: '2014-08-25'
}]);
// Configuration for the Timeline as JSON object
var options = {
showMajorLabels: false,
timeAxis: {
scale: 'week',
step: 1
},
width: '100%',
locale:'fr',
editable: true,
margin: {
item: 20
}
};
// Create a Timeline
var timeline = new vis.Timeline(container, data, options);