Skip to content

Gantt Chart support for Multiple Exclusions #6270

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

No activity

Activity on this issue will appear here.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions