mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

Gantt diagram date text on the horizontal axis overlapped if tasks span a long period of time

Open ccll opened this issue 4 years ago • 4 comments

Describe the bug

image

To Reproduce Steps to reproduce the behavior: Paste below code into live editor

gantt
section Section
Completed    :done,    des1, 2020-01-06, 2020-01-08
Active       :active,  des2, 2020-01-07, 30d
Parallel 1   :         des3, after des1, 30d
Parallel 2   :         des4, after des3, 30d
Parallel 3   :         des5, after des4, 30d
Parallel 4   :         des6, after des5, 30d

Expected behavior The date text on horizontal axis should not overlap, for e.g. switch to a vertical layout.

Desktop (please complete the following information):

  • OS: Ubuntu 19.10
  • Browser chrome

ccll avatar Mar 11 '20 02:03 ccll

Mermaid is amazing. I ran into the same problem. Is it possible to get the dates vertically formatted?

jmythms avatar Nov 02 '20 16:11 jmythms

Did so too, is it resolved?

Bloodchiefy avatar Oct 07 '21 15:10 Bloodchiefy

I would like to raise the very same question... Thanks

drorata avatar Dec 30 '21 18:12 drorata

The easiest way to resolve this is to choose a different date format. It's not a direct solution, but it works for my purposes: https://github.com/mermaid-js/mermaid/issues/269

irasanchez avatar Mar 06 '22 04:03 irasanchez

I think the issue is resolved. I tried to reproduce it and this is the output: image I think it should be closed.

aliouas avatar Nov 01 '23 00:11 aliouas

@aliouas I suspect this is fixed by whatever custom theme you have enabled. For me, it works with minimal enabled, but this is what it looks like with the default theme enabled: image

nmlynch94 avatar Nov 14 '23 18:11 nmlynch94

I'm going to try looking into this this weekend

paldeep-singh avatar Jan 25 '24 10:01 paldeep-singh