Skip to content

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

Open
@SethRobertson

Description

@SethRobertson

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions