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 Relative Duration "week" does not honor Excludes #1814

Open
SethRobertson opened this issue Dec 7, 2020 · 1 comment
Open

Gantt Chart Relative Duration "week" does not honor Excludes #1814

SethRobertson opened this issue Dec 7, 2020 · 1 comment
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

Specifying "Excludes Sunday, Saturday" in a Gantt chart and then using a relative duration of a week does not yield a sane result.

Example configuration file:

gantt
    title Example
    dateFormat  YYYY-MM-DD
    Excludes Sunday, Saturday
    Task1  :a1, 2021-01-11, 1w
    Task2  :a1, 2021-01-11, 5d
  • Expectation, both tasks take the same duration: 5 working days.
  • Actual result, task1 takes 9 calendar days (7 working days).

I believe "durationToDate" is probably a relevant function to examine. The solution might be as simple as *5/7 the weeks and use days instead, but I have not (cannot) test that.

@SethRobertson SethRobertson added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 7, 2020
@go2null
Copy link

go2null commented Aug 3, 2021

Still there.

gantt
    title Example
    dateFormat  YYYY-MM-DD
    axisFormat %W-%a
    excludes weekends
    Task1  :a1, 2021-01-11, 1w
    Task2  :a1, 2021-01-11, 5d
Loading

image

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

3 participants