Our state of the art Gantt chart


Post by Surekha »

Hi Team,
We are facing some different behaviour in dependencies between tasks in advanced demo. Initially if we set dependency Start to start then tasks are having same start date and the arrows are from start date of the predecessors to start date of the bellow task , but if we change the dependencies from end- to -start to start- to- start the tasks are not relocating but the dependencies arrows changing correctly.
I have attached the picture of both the cases where,
picture 1: directly applied Start - to -Start dependencies
picture 2: initially was set to end - to - start dependency and then changed to start - to -start dependency

Attachments
start_to_start_when_given_initially.PNG
start_to_start_when_given_initially.PNG (15.55 KiB) Viewed 231 times
start_to_start_after_end_to_start_is_given.PNG
start_to_start_after_end_to_start_is_given.PNG (13.13 KiB) Viewed 231 times

Post by pmiklashevich »

There must be something else in configuration or task's data. PLease provide a runnable testcase based on our examples.

Try to modify Gantt/examples/_datasets/launch-saas.json

....
"tasks" : {
    "rows" : [
      {
        "id": 1000,
        "name": "Launch SaaS Product",
        "percentDone": 50,
        "startDate": "2019-01-14",
        "expanded": true,
        "children": [
          {
            "id": 1,
            "name": "Setup web server",
            "percentDone": 50,
            "duration": 10,
            "startDate": "2019-01-14",
            "rollup": true,
            "endDate": "2019-01-23",
            "leaf": true
          },
          {
            "id": 2,
            "name": "Website Design",
            "percentDone": 60,
            "startDate": "2019-01-23",
            "rollup": true,
            "endDate": "2019-02-13",
            "leaf": true
          }
        ],
        "endDate": "2019-02-16"
      }
    ]
  },

  "dependencies" : {
    "rows" : [
      {
        "id"       : 1,
        "fromTask" : 1,
        "toTask"   : 2
      }
    ]
  },
  ....

and open Advanced demo to see how it works

Запись активности на экране 2021-06-17 в 13.10.50.gif
Запись активности на экране 2021-06-17 в 13.10.50.gif (3.12 MiB) Viewed 227 times

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply