简体   繁体   English

美人鱼甘特图从轴心排除周末

[英]Mermaid Gantt exclude weekends from Axis

How do I exclude weekends in the visual output?如何在视觉输出中排除周末? (see circled area below). (见下面的圆圈区域)。

I would like to exclude weekends both in counting and visually.我想在计数和视觉上都排除周末。 Is there a way to do that?有没有办法做到这一点?

Here is my code,这是我的代码,

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

带有标记间隙的代码输出

Seems like the newer versions exclude weekends by default似乎新版本默认不包括周末

Running this code,运行这段代码,

# 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

I get this,我明白了,

甘特梅尔马迪

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM