vis-timeline items gets overlapped not sure exactly why this overlapping occurs, but this overlapping occur in the following cases and is there any other way to remove this overlapping issue ?
Here is a JSFiddle: https://jsfiddle.net/Kumaran_Kanagaraj/cmgyxf31/7/
var itemDataWithSubGroup = [
{
"id": "NULL/Epic:2659",
"group": "NULL",
"subgroup": "NULL/Epic:2659",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "17. Bent both rule develop thou practical sentence sell different bread.",
"order": 17,
"type": "range"
},
{
"id": "NULL/Epic:2658",
"group": "NULL",
"subgroup": "NULL/Epic:2658",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "18. Slept tank they tank screen simple center visit plain lead.",
"order": 18,
"type": "range"
},
{
"id": "NULL/Epic:2657",
"group": "NULL",
"subgroup": "NULL/Epic:2657",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "19. Left hollow plates water bill crack motion blew fuel now.",
"order": 19,
"type": "range"
},
{
"id": "NULL/Epic:2656",
"group": "NULL",
"subgroup": "NULL/Epic:2656",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-17T18:30:00.000Z",
"content": "20. Please getting since fireplace location object receive pot oldest right.",
"order": 20,
"type": "range"
},
{
"id": "NULL/Epic:2655",
"group": "NULL",
"subgroup": "NULL/Epic:2655",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "21. Nose small window social happily youth month realize those goes.",
"order": 21,
"type": "range"
},
{
"id": "NULL/Epic:2654",
"group": "NULL",
"subgroup": "NULL/Epic:2654",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "22. Acres wrapped fruit possible happened common lovely southern riding feature.",
"order": 22,
"type": "range"
},
{
"id": "NULL/Epic:2653",
"group": "NULL",
"subgroup": "NULL/Epic:2653",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "23. Inch similar establish captured control native chapter combination plural voyage.",
"order": 23,
"type": "range"
},
{
"id": "NULL/Epic:2652",
"group": "NULL",
"subgroup": "NULL/Epic:2652",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "24. Weigh child belt how pattern fully country deeply harder trap.",
"order": 24,
"type": "range"
},
{
"id": "NULL/Epic:2651",
"group": "NULL",
"subgroup": "NULL/Epic:2651",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "25. Carbon building make experiment class indeed wait brass cotton your.",
"order": 25,
"type": "range"
},
{
"id": "NULL/Epic:2650",
"group": "NULL",
"subgroup": "NULL/Epic:2650",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "26. Liquid everyone bit fairly hundred into point bone bush lamp.",
"order": 26,
"type": "range"
},
{
"id": "NULL/Epic:2649",
"group": "NULL",
"subgroup": "NULL/Epic:2649",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "27. Feature same element cast wherever onto shoe soldier man cap.",
"order": 27,
"type": "range"
},
{
"id": "NULL/Epic:2648",
"group": "NULL",
"subgroup": "NULL/Epic:2648",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "28. Fort stream slow sugar bend brief table railroad brush describe.",
"order": 28,
"type": "range"
},
{
"id": "NULL/Epic:2647",
"group": "NULL",
"subgroup": "NULL/Epic:2647",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-03-29T18:30:00.000Z",
"content": "29. Corn upper rear rocket strength trick knowledge should courage setting.",
"order": 29,
"type": "range"
},
{
"id": "NULL/Epic:2646",
"group": "NULL",
"subgroup": "NULL/Epic:2646",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-10T18:30:00.000Z",
"content": "30. Strip sang eight bell express start large thought cold sat.",
"order": 30,
"type": "range"
},
{
"id": "NULL/Epic:2645",
"group": "NULL",
"subgroup": "NULL/Epic:2645",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-10T18:30:00.000Z",
"content": "31. Standard up largest market carefully dull task former space post.",
"order": 31,
"type": "range"
},
{
"id": "NULL/Epic:2644",
"group": "NULL",
"subgroup": "NULL/Epic:2644",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "32. Conversation nervous want excitement one contain pressure tie tongue development.",
"order": 32,
"type": "range"
},
{
"id": "NULL/Epic:2643",
"group": "NULL",
"subgroup": "NULL/Epic:2643",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-10T18:30:00.000Z",
"content": "33. Kept church fell completely ran doctor man straw usual recent.",
"order": 33,
"type": "range"
},
{
"id": "NULL/Epic:2640",
"group": "NULL",
"subgroup": "NULL/Epic:2640",
"start": "2021-10-26T18:30:00.000Z",
"end": "2022-12-31T18:30:00.000Z",
"content": "34. Cry occasionally bent composed unhappy fun floating situation office throat.",
"order": 34,
"type": "range"
},
{
"id": "NULL/Epic:2639",
"group": "NULL",
"subgroup": "NULL/Epic:2639",
"start": "2021-08-16T18:30:00.000Z",
"end": "2022-03-31T18:30:00.000Z",
"content": "35. Mine about frog valley captured property size origin cent most.",
"order": 35,
"type": "range"
},
{
"id": "NULL/Epic:2633",
"group": "NULL",
"subgroup": "NULL/Epic:2633",
"start": "2021-01-05T18:30:00.000Z",
"end": "2021-03-30T18:30:00.000Z",
"content": "36. Division powerful ring separate lonely purple nation cold stick cup.",
"order": 36,
"type": "range"
},
{
"id": "NULL/Epic:2632",
"group": "NULL",
"subgroup": "NULL/Epic:2632",
"start": "2021-02-23T18:30:00.000Z",
"end": "2021-04-02T18:30:00.000Z",
"content": "37. Comfortable giving carefully aid look late pretty origin pocket zero.",
"order": 37,
"type": "range"
},
{
"id": "NULL/Epic:2631",
"group": "NULL",
"subgroup": "NULL/Epic:2631",
"start": "2021-01-28T18:30:00.000Z",
"end": "2021-11-02T18:30:00.000Z",
"content": "38. Diagram lost safety desert purpose damage zipper whistle bell voice.",
"order": 38,
"type": "range"
},
{
"id": "NULL/Epic:2628",
"group": "NULL",
"subgroup": "NULL/Epic:2628",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-06-01T18:30:00.000Z",
"content": "39. Mass also deal farm arrow fairly prepare steady farmer plural.",
"order": 39,
"type": "range"
},
{
"id": "NULL/Epic:2620",
"group": "NULL",
"subgroup": "NULL/Epic:2620",
"start": "2021-10-26T18:30:00.000Z",
"end": "2022-01-04T18:30:00.000Z",
"content": "40. Suddenly property fly job interest evening greatly birthday depend brought.",
"order": 40,
"type": "range"
},
{
"id": "NULL/Epic:2618",
"group": "NULL",
"subgroup": "NULL/Epic:2618",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "41. Tired throw sent car brief against muscle captain people needs.",
"order": 41,
"type": "range"
},
{
"id": "NULL/Epic:2617",
"group": "NULL",
"subgroup": "NULL/Epic:2617",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "42. Market last tip planned loose solid characteristic told palace missing.",
"order": 42,
"type": "range"
},
{
"id": "NULL/Epic:2616",
"group": "NULL",
"subgroup": "NULL/Epic:2616",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "43. Cause bring knife because stove law pet shake seen name.",
"order": 43,
"type": "range"
},
{
"id": "NULL/Epic:2615",
"group": "NULL",
"subgroup": "NULL/Epic:2615",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "44. Where wagon young minute needed glass foot running instant trick.",
"order": 44,
"type": "range"
},
{
"id": "NULL/Epic:2614",
"group": "NULL",
"subgroup": "NULL/Epic:2614",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "45. Molecular huge meal friend call good thing stairs as slip.",
"order": 45,
"type": "range"
},
{
"id": "NULL/Epic:2610",
"group": "NULL",
"subgroup": "NULL/Epic:2610",
"start": "2022-05-10T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "46. Snake dark yourself spoken between grass people inch hour frog.",
"order": 46,
"type": "range"
},
{
"id": "NULL/Epic:2609",
"group": "NULL",
"subgroup": "NULL/Epic:2609",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "47. Income offer function lot service describe constantly am tune related.",
"order": 47,
"type": "range"
},
{
"id": "NULL/Epic:2608",
"group": "NULL",
"subgroup": "NULL/Epic:2608",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "48. Cold threw knife package pan chamber hole clock parent difficulty.",
"order": 48,
"type": "range"
},
{
"id": "NULL/Epic:2607",
"group": "NULL",
"subgroup": "NULL/Epic:2607",
"start": "2022-04-12T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "49. Fight pile adventure several earn mirror topic lonely built window.",
"order": 49,
"type": "range"
},
{
"id": "NULL/Epic:2606",
"group": "NULL",
"subgroup": "NULL/Epic:2606",
"start": "2022-04-12T18:30:00.000Z",
"end": "2022-05-07T18:30:00.000Z",
"content": "50. Jar add door victory shine compass number course dull older.",
"order": 50,
"type": "range"
},
{
"id": "NULL/Epic:2605",
"group": "NULL",
"subgroup": "NULL/Epic:2605",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-07T18:30:00.000Z",
"content": "51. Copper star space slide strength verb few division avoidhttps://jsfiddle.net/Kumaran_Kanagaraj/cmgyxf31/1/# passage.",
"order": 51,
"type": "range"
},
{
"id": "NULL/Epic:2604",
"group": "NULL",
"subgroup": "NULL/Epic:2604",
"start": "2022-02-15T18:30:00.000Z",
"end": "2022-04-09T18:30:00.000Z",
"content": "52. Future horse given shoulder notice distance scene degree beneath pony.",
"order": 52,
"type": "range"
},
{
"id": "NULL/Epic:2603",
"group": "NULL",
"subgroup": "NULL/Epic:2603",
"start": "2022-02-15T18:30:00.000Z",
"end": "2022-04-21T18:30:00.000Z",
"content": "53. Leather highest mad fly strange separate greater bark giant till.",
"order": 53,
"type": "range"
},
{
"id": "NULL/Epic:2602",
"group": "NULL",
"subgroup": "NULL/Epic:2602",
"start": "2022-03-14T18:30:00.000Z",
"end": "2022-05-11T18:30:00.000Z",
"content": "54. Grabbed recall area carried shake count relationship experience peace slowly.",
"order": 54,
"type": "range"
},
{
"id": "NULL/Epic:2601",
"group": "NULL",
"subgroup": "NULL/Epic:2601",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-10T18:30:00.000Z",
"content": "55. Composed trick figure visitor gain per where journey card meet.",
"order": 55,
"type": "range"
},
{
"id": "NULL/Epic:2600",
"group": "NULL",
"subgroup": "NULL/Epic:2600",
"start": "2022-02-07T18:30:00.000Z",
"end": "2022-04-26T18:30:00.000Z",
"content": "56. Verb someone poet room pair glass stomach soon ever seen.",
"order": 56,
"type": "range"
},
{
"id": "NULL/Epic:2599",
"group": "NULL",
"subgroup": "NULL/Epic:2599",
"start": "2022-01-24T18:30:00.000Z",
"end": "2022-04-26T18:30:00.000Z",
"content": "57. Audience gun bent hurried wealth distance silent your seldom said.",
"order": 57,
"type": "range"
},
{
"id": "NULL/Epic:2598",
"group": "NULL",
"subgroup": "NULL/Epic:2598",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-04-26T18:30:00.000Z",
"content": "58. Tip who held stuck visitor earth also term route importance.",
"order": 58,
"type": "range"
},
{
"id": "NULL/Epic:2597",
"group": "NULL",
"subgroup": "NULL/Epic:2597",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "59. Shake in parent border real grade poem upward bigger muscle.",
"order": 59,
"type": "range"
},
{
"id": "NULL/Epic:2596",
"group": "NULL",
"subgroup": "NULL/Epic:2596",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "60. Variety exercise fought wise shinning shown medicine thought party why.",
"order": 60,
"type": "range"
},
{
"id": "NULL/Epic:2595",
"group": "NULL",
"subgroup": "NULL/Epic:2595",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "61. Flight amount atomic sink century made people whenever average again.",
"order": 61,
"type": "range"
},
{
"id": "NULL/Epic:2594",
"group": "NULL",
"subgroup": "NULL/Epic:2594",
"start": "2022-01-05T18:30:00.000Z",
"end": "2022-03-16T18:30:00.000Z",
"content": "62. Carried trouble die warn after silk bank shade note visitor.",
"order": 62,
"type": "range"
},
{
"id": "NULL/Epic:2593",
"group": "NULL",
"subgroup": "NULL/Epic:2593",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "63. Beginning remarkable clothes value outside tool telephone nose bank necessary.",
"order": 63,
"type": "range"
},
{
"id": "NULL/Epic:2592",
"group": "NULL",
"subgroup": "NULL/Epic:2592",
"start": "2021-10-26T18:30:00.000Z",
"end": "2022-01-04T18:30:00.000Z",
"content": "64. Dance connected piano daily real indicate exercise mine feature eager.",
"order": 64,
"type": "range"
},
{
"id": "NULL/Epic:2591",
"group": "NULL",
"subgroup": "NULL/Epic:2591",
"start": "2021-10-26T18:30:00.000Z",
"end": "2021-12-21T18:30:00.000Z",
"content": "65. Part above planned fox adjective establish nobody told uncle knife.",
"order": 65,
"type": "range"
},
{
"id": "NULL/Epic:2590",
"group": "NULL",
"subgroup": "NULL/Epic:2590",
"start": "2020-09-15T18:30:00.000Z",
"end": "2020-12-15T18:30:00.000Z",
"content": "66. Fifty run sky special eventually progress country remove chance dark.",
"order": 66,
"type": "range"
},
{
"id": "NULL/Epic:2589",
"group": "NULL",
"subgroup": "NULL/Epic:2589",
"start": "2020-12-31T18:30:00.000Z",
"end": "2022-12-31T18:30:00.000Z",
"content": "67. Short easier southern cannot every offer use read dance even.",
"order": 67,
"type": "range"
},
{
"id": "NULL/Epic:2588",
"group": "NULL",
"subgroup": "NULL/Epic:2588",
"start": "2020-09-29T18:30:00.000Z",
"end": "2020-12-15T18:30:00.000Z",
"content": "68. Became carried carefully saddle badly product instance progress speak trip.",
"order": 68,
"type": "range"
},
{
"id": "NULL/Epic:2587",
"group": "NULL",
"subgroup": "NULL/Epic:2587",
"start": "2022-03-15T18:30:00.000Z",
"end": "2022-05-24T18:30:00.000Z",
"content": "69. Ordinary verb instant film drive leaving appearance cool vapor joy.",
"order": 69,
"type": "range"
},
{
"id": "NULL/Epic:2584",
"group": "NULL",
"subgroup": "NULL/Epic:2584",
"start": "2022-01-04T18:30:00.000Z",
"end": "2022-03-15T18:30:00.000Z",
"content": "70. Yet news doubt poet inch age toward dollar hurt additional.",
"order": 70,
"type": "range"
},
{
"id": "NULL/Epic:1194",
"group": "NULL",
"subgroup": "NULL/Epic:1194",
"start": "2020-05-06T18:30:00.000Z",
"end": "2020-07-06T18:30:00.000Z",
"content": "71. Quietly ranch crack are grandfather foreign affect claws behind however.",
"order": 71,
"type": "range"
},
{
"id": "NULL/Epic:1193",
"group": "NULL",
"subgroup": "NULL/Epic:1193",
"start": "2020-05-03T18:30:00.000Z",
"end": "2020-08-01T18:30:00.000Z",
"content": "72. But slabs planning railroad watch speed car making spin sold.",
"order": 72,
"type": "range"
},
{
"id": "NULL/Epic:1192",
"group": "NULL",
"subgroup": "NULL/Epic:1192",
"start": "2020-05-03T18:30:00.000Z",
"end": "2020-08-01T18:30:00.000Z",
"content": "73. Town store hide met later real probably sleep zebra been.",
"order": 73,
"type": "range"
},
{
"id": "NULL/Epic:1191",
"group": "NULL",
"subgroup": "NULL/Epic:1191",
"start": "2020-05-03T18:30:00.000Z",
"end": "2020-08-01T18:30:00.000Z",
"content": "74. Store car successful draw strange radio prize selection club key.",
"order": 74,
"type": "range"
},
{
"id": "NULL/Epic:1190",
"group": "NULL",
"subgroup": "NULL/Epic:1190",
"start": "2020-01-05T18:30:00.000Z",
"end": "2020-05-02T18:30:00.000Z",
"content": "75. Idea molecular indeed coat spent toward wish shown finally loss.",
"order": 75,
"type": "range"
},
{
"id": "NULL/Epic:1184",
"group": "NULL",
"subgroup": "NULL/Epic:1184",
"start": "2020-01-05T18:30:00.000Z",
"end": "2020-03-09T18:30:00.000Z",
"content": "76. Rather kitchen citizen sides good potatoes breathe sport structure share.",
"order": 76,
"type": "range"
},
{
"id": "NULL/Epic:1183",
"group": "NULL",
"subgroup": "NULL/Epic:1183",
"start": "2020-01-05T18:30:00.000Z",
"end": "2020-03-09T18:30:00.000Z",
"content": "77. Stretch show dead look rhyme diagram loud village birth system.",
"order": 77,
"type": "range"
},
{
"className": "first-background",
"group": "NULL",
"start": "2021-01-28T18:30:00.000Z",
"end": "2021-11-02T18:30:00.000Z",
"subgroup": "NULL/Epic:2631",
"type": "background",
"id": "eb227dfa-425d-47e7-a668-d4a355feea40"
},
{
"className": "last-background",
"group": "NULL",
"start": "2021-01-28T18:30:00.000Z",
"end": "2021-11-02T18:30:00.000Z",
"subgroup": "NULL/Epic:2632",
"type": "background",
"id": "ad6399cb-39b0-465c-82a6-33e0c4ad0f58"
}]
var groupData = [
{
"id": "NULL",
"oidToken": "NULL",
"stack": false,
"subgroupStack": true,
"content": "NULL",
"subgroupOrder": "order",
subgroupOrder: function (a, b) {
return a.order - b.order;
}
}
]
var options =
{
"stack": true,
"autoResize": true,
"orientation": {
"item": "both",
"axis": "both"
},
"width": '100%',
"margin": {
"item": {
"vertical": 16,
},
},
"start": "2021-12-01T18:30:00.000Z",
"end": "2022-12-01T18:30:00.000Z",
"dataAttributes": [
"name",
"oidToken",
"group",
"assetType",
"isExpanded"
],
"locale": "en",
"locales": {
"en": {
"current": "current",
"time": "time"
}
}
};
var container = document.getElementById("visualization");
var groups = new vis.DataSet(groupData);
var items = new vis.DataSet(itemDataWithSubGroup);
var timeline = new vis.Timeline(container, items, groups, options);
window.ctimeline = timeline;
timeline.setGroups(groups);
timeline.setItems(items);
-
Given I have both the box items and background items. Provided that the both the background item and the box item need to be in the same subgroup. When the background item time range is large when comparing that to the box item which is beneath that background. Then the overlapping occur.
Here in the provided example item “37. Comfortable giving carefully aid look late pretty origin pocket zero.” time range is between 2021-02-23 to 2021-04-02 and its corresponding background item time range is 2021-01-28 to 2021-11-02 which having the id ‘ad6399cb-39b0-465c-82a6-33e0c4ad0f58’ and className as ‘last-background’. If we remove that background or adjust their time range such that both their time range are more or less equal then this overlapping will not occur.
-
Given if I set stack:true in vis-timeline configure options. Provided that the both the background item and the box item need to be in the same subgroup. Then the overlapping occur. This is in contradiction with the document.
Here in the provided example if I set stack:false in vis-timeline options then this overlapping will not occur.
Have posted this issue in vis-timeline repo but no solution yet so asking here in stackoverflow.