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 Chart support for Multiple Exclusions #6270

Open
ZcuBa opened this issue Feb 12, 2025 · 0 comments
Open

Gantt Chart support for Multiple Exclusions #6270

ZcuBa opened this issue Feb 12, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@ZcuBa
Copy link

ZcuBa commented Feb 12, 2025

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

@ZcuBa ZcuBa added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant