JSFiddle - React, Tailwind, and code Playground

by Kumaran_Kanagaraj

HTML

<link rel="stylesheet" href="https://visjs.github.io/vis-timeline/styles/vis-timeline-graph2d.min.css">
<script src="https://visjs.github.io/vis-timeline/standalone/umd/vis-timeline-graph2d.min.js"></script>
<!DOCTYPE HTML>
<html>

<head>
    <title>Timeline | items | Background areas with groups and subgroups</title>
</head>

<body>
    <div id="visualization"></div>
</body>

CSS

body,
html {
  font-family: arial, sans-serif;
  font-size: 11pt;
  }

JavaScript

var itemDataWithSubGroup = [
    {
        "id": "NULL/Epic:3595",
        "group": "NULL",
        "subgroup": "NULL/Epic:3595",
        "start": "2022-06-30T18:30:00.000Z",
        "end": "2022-09-30T18:30:00.000Z",
        "content": "0. Needle sail everywhere blue die graph climb folks slept lake.",
        "order": 0,
        "type": "range"
    },
    {
        "id": "NULL/Epic:3594",
        "group": "NULL",
        "subgroup": "NULL/Epic:3594",
        "start": "2022-06-30T18:30:00.000Z",
        "end": "2022-09-30T18:30:00.000Z",
        "content": "1. Signal happily believed father tail from worker grown men late.",
        "order": 1,
        "type": "range"
    },
    {
        "id": "NULL/Epic:2730",
        "group": "NULL",
        "subgroup": "NULL/Epic:2730",
        "start": "2021-11-01T18:30:00.000Z",
        "end": "2022-01-10T18:30:00.000Z",
        "content": "2. Center mind community sitting cry movie former certain has shot.",
        "order": 2,
        "type": "range"
    },
    {
        "id": "NULL/Epic:2725",
        "group": "NULL",
        "subgroup": "NULL/Epic:2725",
        "start": "2022-03-15T18:30:00.000Z",
        "end": "2022-04-05T18:30:00.000Z",
        "content": "3. Yourself equipment pictured most sad speak whole classroom movie doll.",
        "order": 3,
        "type": "range"
    },
    {
        "id": "NULL/Epic:2707",
        "group": "NULL",
        "subgroup": "NULL/Epic:2707",
        "start": "2022-03-15T18:30:00.000Z",
        "end": "2022-05-24T18:30:00.000Z",
        "content": "4. Recognize us watch suit sail arrive opportunity made poem wall.",
        "order": 4,
        "type": "range"
    },
    {
        "id": "NULL/Epic:2706",
        "group": "NULL",
        "subgroup": "NULL/Epic:2706",
        "start": "2022-03-15T18:30:00.000Z",
        "end": "2022-05-24T18:30:00.000Z",
        "content": "5. Beyond behavior purpose long different successful like half no engineer.",
        "order": 5,
       ...