3

如何在视觉输出中排除周末?(见下方圆圈区域)。

我想在计数和视觉上排除周末。有没有办法做到这一点?

这是我的代码,

gantt
    title blabla
    dateFormat  YYYY-DD-MM
    axisFormat %W
    excludes weekends saturday,sunday
    
    section Section
    Task     :a1, 2020-23-03, 5d
    Another task     :after a1  , 15d
    
    section Another
    Task in sec      :2020-20-03  , 12d
    another task      : 24d

带标记间隙的代码输出

4

1 回答 1

1

似乎较新的版本默认不包括周末

运行这段代码,

# library(DiagrammeR)
gantt
 dateFormat  YYYY-DD-MM
 title blabla
 # axisFormat %d/%m
 # excludes weekends saturday,sunday

section Section
Task     :a1, 2020-23-03, 5d
Another task     :after a1  , 15d

section Another
Task in sec      :2020-20-03  , 12d
another task      : 24d

我明白了,

甘特美人鱼

于 2021-03-18T10:30:34.943 回答