如何从我的甘特图中删除“今天”垂直线
Posted
技术标签:
【中文标题】如何从我的甘特图中删除“今天”垂直线【英文标题】:How to remove the "today" vertical line from my Gantt chart 【发布时间】:2017-07-13 10:16:56 【问题描述】:我使用 DiagrammeR 包在 R(我的第一个)中创建了一个简单的甘特图,但我不知道如何从图表中删除红色垂直线(代表今天)。另外,出于某种原因,March 在 x 轴上显示为 w.17 而不是 03-17?任何想法都非常欢迎。
代码如下
library(Diagrammer)
m1 <- mermaid("
gantt
dateFormat YYYY-MM-DD
title Research Proposal Timeline
section Tidy Raw Data
Tidy available data :active, first_1, 2017-03-01, 14d
New data :active, first_2, 2017-06-01, 7d
section Alignment and Assemply
Align & Assign RNASeq Dataset :crit, active, align_1, 2017-03-15, 14d
Align & Assign Epic Array Dataset :crit, active, align_2, 2017-03-20, 14d
Assemble Methylome :crit, active, align_3, align_2, 14d
Assemble Genotype & Phenotype Tables :crit, active, align_4, after align_3, 5d
section Data Analysis
Development of Pipeline :active, pipe_1, 2017-04-01, 156d
Debugging Script :active pipe_2, 2017-04-11, 146d
Student Development :active pipe_3, 2017-03-01, 200d
section Results
Define Biomarkers of interest :active, results_1, 2017-06-01, 5d
Establish Predictive Model :active, results_2, 2017-06-01, 14d
Test Predictive Model :active, results_3, 2017-06-08, 10d
section Assessments
Written Research Proposal :active, extras_1, 2017-02-20, 16d
Research Proposal Seminar :active, extras_2, 2017-03-06, 15d
Non-Expert Seminar :active, extras_3, 2017-04-01, 10d
Draft Literature Review :active, extras_4, 2017-03-21, 77d
Literature Review :active, extras_5, 2017-05-22, 14d
Literature Assessment Task :active, extras_6, 2017-07-04, 24h
Research Progress Seminar :active, extras_7, 2017-08-01, 20d
Thesis :crit, active, extras_8, 2017-08-04, 94d
VIVA :crit, active, extras_9, 2017-11-07, 24h
", height = 400, width = 1000)
m1
代码是根据 George Dontas 之前的回复修改的。
【问题讨论】:
【参考方案1】:如果你使用style_widget function from here,你可以摆脱这条线。然后就可以调用了
style_widget(m1, "display:none", "line.today")
【讨论】:
太棒了@MrFlick 我已经添加了你的style_widget
功能,这条线已经消失了——感谢你对传单的介绍。【参考方案2】:
您可以通过以下方式关闭当天的标记: 今天标记关闭
【讨论】:
以上是关于如何从我的甘特图中删除“今天”垂直线的主要内容,如果未能解决你的问题,请参考以下文章