-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add vertical line to gantt plot at specified date #3250
Labels
Comments
+1 |
+1 |
+1!! |
+1 |
Also really agree that this would be useful |
+1 |
2 similar comments
+1 |
+1 |
You can sort-of achieve it with CSS:
%%{init: { 'themeCSS':
'rect[id^=vert] { height: calc(100% - 50px); transform: translate(9px, 25px); y: 0; width: 1.5px; stroke: none; fill: red; } text[id^=vert] { fill: red; y: 100%; transform: translate(-50px, 50px); font-size: 15px;}'
} }%%
gantt
title Leave Plan
dateFormat YYYY-MM-DD
axisFormat %b-%d
section Time off
Sabbatical start -- 2022-10-03 :milestone, birth, 2022-10-03, 0d
Time off -- 2 weeks :first_time_off, 2022-10-03, 2w
Time off -- 2 weeks :second_time_off, after work1, 2w
Time off -- 3 months :3_months_off1, after work2, 90d
Time off -- 3 months :3_months_off2, after work3, 90d
section Working
Working -- 2 weeks :work1, after first_time_off, 2w
Working -- 2 weeks :work2, after second_time_off, 2w
Working -- 3 months :work3, after 3_months_off1, 90d
Nov. 28 :milestone, vert1, after work2,
Feb. 26 :milestone, vert2, after work3,
|
@StefanBrand thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I find that the gantt plot axis is not fine grained enough, particularly when it comes to delineating the start and end of an event. I can't see the specific date when events start and end, I can only guess.
I suppose I have two feature requests regarding this issue:
I'm thinking something like this:
Generated with something like this:
I can imagine the need for new keywords, similar to milestone. Here I use
vert
andspecify_date
.The text was updated successfully, but these errors were encountered: