mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.66k stars 6.33k forks source link

Gantt Chart - <time> after <taskId> - for setting delayed start #818

Open mike-usa opened 5 years ago

mike-usa commented 5 years ago

As described in the following comment (https://github.com/knsv/mermaid/issues/552#issuecomment-356012310):

I need a delay, like start apple 1 week after banana; both beginning and ending.

Consider the following Gantt chart:

gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    axisFormat %m/%d/%Y

    section Phase I#colon; A
    First    : first, now, 1d

    section Phase I#58; B
    Second   : second, after first, 12h

I'd expect to be able to be able to perform the second task 1 day after first task concludes via 1d after first. Perhaps there is already a way to perform an offset/delay buffer that hasn't been documented?

I've unsuccessfully attempted to create a hidden buffer task to use as the start date, which did not work because I could not control the styling (it was still visible); below should help exemplify my effort:

section Phase I#colon; A
First    : first, now, 1d
Break    :hidden break1, after first, 1d
Second   : second, after break1, 12 h

Please let me know if this needs further clarification and feel free to use the demo for a working reference.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

knsv commented 5 years ago

I understand what you are after. This is a good idea! Not in place though but I will add it to the project backlog. I am hoping for a larger team moving forward to be able to implement things like this. #866

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still interested in it, and it is still relevant, you can comment or remove the label to revive it.

treyworl commented 3 years ago

I would also like to see this feature. Commenting to revive as a potential TODO.

mwebb33 commented 1 year ago

agreed I like this feature

RCarvalho13 commented 1 year ago

The addition of this feature would be great. This would be very useful for the definition of deliverables, which usually have a due date after the completion of the task.

backhausmartin commented 5 months ago

Yes I agree, this would be nice. To build some simple schedules it is a critical feature to me, to let a task start two weeks after the beginning of a previous task. This is a Start-Start dependency with 2 week "lag", not a Finish-Start dependency like the default after behaviour.

cds-internationalist commented 2 months ago

Chiming in on this too - it's more or less necessary for projects beyond the most basic.