【问题标题】:Mermaid Gantt exclude weekends from Axis美人鱼甘特图将周末排除在 Axis 之外
【发布时间】:2020-03-24 10:05:58
【问题描述】:

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

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

这是我的代码,

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

【问题讨论】:

    标签: markdown gantt-chart weekend mermaid


    【解决方案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
    

    我明白了,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-23
      • 1970-01-01
      • 2018-12-24
      • 2018-09-16
      • 2016-02-10
      • 2019-01-09
      • 2022-12-14
      • 2021-12-09
      相关资源
      最近更新 更多