Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

showMajorLabels to false and scale set to 'week' creates vertical lines display bug #3246

@Franzyval

Description

@Franzyval

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
bug-timeline

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);

Thanks !
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions