Skip to content

Gantt Chart support for Multiple Exclusions #6270

Closed

Description

@ZcuBa

Proposal

Mermaid.js should add support for defining exclusions, in multiple lines.

currently, if we have to exclude holidays, and weekends, we need to have a single line statement. (e.g. spring season in Denmark)
dateFormat DD-MM-YYYY
excludes weekends, 10-02-2025 11-02-2025 12-02-2025 13-02-2025 14-02-2025, 17-04-2025 18-04-2025 20-04-2025 21-04-2025, 01-05-2025, 29-05-2025, 05-06-2025, 08-06-2025 09-06-2025

however that is impossible for anyone to read, and it would be much better if we could split it up into multiple statements, that could be commented
dateFormat DD-MM-YYYY
excludes weekends,

%%week 7 is winter break
excludes 10-02-2025 11-02-2025 12-02-2025 13-02-2025 14-02-2025

%%no one works in easter
excludes 17-04-2025 18-04-2025 20-04-2025 21-04-2025

%%workers holdiday 1 maj
01-05-2025
...

the functionality is simple, all exclusion statements are to be concatenated.

Example

No response

Screenshots

No response

Activity

  1. added
    Status: Triage
    Type: Enhancement
    on Feb 12, 2025
  2. ashishjain0512 commented on Mar 2, 2026

    @ashishjain0512
    Collaborator

    [sisyphus-bot]

    Hi @ZcuBa, thanks for the well-explained feature request. Apologies for the delay.

    This is a request to allow multiple excludes lines in Gantt charts, so that holiday exclusions can be organized with comments. Currently, all exclusions must be on a single line, which becomes unwieldy for long lists.

    The proposed solution (concatenating all excludes statements) is clean and backward-compatible. We've labeled this as an enhancement and tagged for contributors.

  3. added
    Status: Approved
    and removed
    Status: Triage
    on Mar 2, 2026
  4. ZcuBa commented on Mar 2, 2026

    @ZcuBa
    Author

    Nice, this is something I have been looking forward to 😄

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions