Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gantt compact displayMode has severe overwriting problem for external labels #4683

Open
SethRobertson opened this issue Jul 31, 2023 · 0 comments
Labels
Graph: Gantt Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@SethRobertson
Copy link

Description

When I have a gantt chart with task labels that do not fit inside the task box, and enable compact displayMode to achieve the effects mentioned in bugs #1813 and #1996 the resulting chart becomes unreadable since tasks overwrite each other.

Steps to reproduce

I adjusted the online editor example Gantt input to demonstrate this bad effect:

https://mermaid.live/edit#pako:eNpdkD9rwzAQxb_KodkCy0kXbQbTTp7SpaDlsOREVH-MfR5CyHevFMs17SHQ8d7v6cQ92BC1YZJxzlXQdpkc3vskSRiin3AgFV7WFQOlHlKRJWeghY8sQWfxOqPfLI1k3uPskQC-UvG-5123eYsZyMYAl-3exBYIl284SqKooKnFmdcinQpOtS55j87RzYZrgpoDEm8ViMJEupl5Z0YyM2Ryd9vw8o-ROyMA8nv670cLvomfOWNDNstHf-c3OS2aksb_Q0BCc9asYt6kxVidlv3IqGKJ80YxmVptRlwdKabCM6G4Urzcw8Akzaup2DrlzZZVMzmiW8zzB34jg8M

Notice that the center line has "smallthing" and "otherthing" being printed on top of each other.

Screenshots

image

Code Sample

No response

Setup

  • Mermaid version: 10.3
  • Browser and Version: Firefox

Suggested Solutions

No response

Additional Context

No response

@SethRobertson SethRobertson added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Gantt Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants