pgfgantt resolution; month for title, day for bars
I haven't yet come upon a good solution for representing tasks (bars) to daily resolution without having an overly busy gantt title i.e. limiting it at monthly resolution.
I would like to define start and end times for groups and tasks/bars with by a date specifier of the format: yyyy-mm-dd.
Here is an mwe:
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 15 - April 5th
ganttbarentry{gray}{Task II}{2019-03}{2019-03} \%
\
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 4th - March 15th
ganttbarentry{gray}{Task II}{2019-04}{2019-04} \%
end{ganttchart}
end{document}
The output is blocky / limited to monthly resolution:
tikz-pgf pgfgantt
add a comment |
I haven't yet come upon a good solution for representing tasks (bars) to daily resolution without having an overly busy gantt title i.e. limiting it at monthly resolution.
I would like to define start and end times for groups and tasks/bars with by a date specifier of the format: yyyy-mm-dd.
Here is an mwe:
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 15 - April 5th
ganttbarentry{gray}{Task II}{2019-03}{2019-03} \%
\
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 4th - March 15th
ganttbarentry{gray}{Task II}{2019-04}{2019-04} \%
end{ganttchart}
end{document}
The output is blocky / limited to monthly resolution:
tikz-pgf pgfgantt
1
You could "cheat":ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.
– marmot
Mar 4 at 19:44
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00
add a comment |
I haven't yet come upon a good solution for representing tasks (bars) to daily resolution without having an overly busy gantt title i.e. limiting it at monthly resolution.
I would like to define start and end times for groups and tasks/bars with by a date specifier of the format: yyyy-mm-dd.
Here is an mwe:
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 15 - April 5th
ganttbarentry{gray}{Task II}{2019-03}{2019-03} \%
\
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 4th - March 15th
ganttbarentry{gray}{Task II}{2019-04}{2019-04} \%
end{ganttchart}
end{document}
The output is blocky / limited to monthly resolution:
tikz-pgf pgfgantt
I haven't yet come upon a good solution for representing tasks (bars) to daily resolution without having an overly busy gantt title i.e. limiting it at monthly resolution.
I would like to define start and end times for groups and tasks/bars with by a date specifier of the format: yyyy-mm-dd.
Here is an mwe:
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 15 - April 5th
ganttbarentry{gray}{Task II}{2019-03}{2019-03} \%
\
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
ganttbarentry{gray}{Task I}{2019-03}{2019-03} \%
% March 4th - March 15th
ganttbarentry{gray}{Task II}{2019-04}{2019-04} \%
end{ganttchart}
end{document}
The output is blocky / limited to monthly resolution:
tikz-pgf pgfgantt
tikz-pgf pgfgantt
asked Mar 4 at 18:52
John ChrisJohn Chris
403313
403313
1
You could "cheat":ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.
– marmot
Mar 4 at 19:44
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00
add a comment |
1
You could "cheat":ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.
– marmot
Mar 4 at 19:44
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00
1
1
You could "cheat":
ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.– marmot
Mar 4 at 19:44
You could "cheat":
ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.– marmot
Mar 4 at 19:44
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00
add a comment |
1 Answer
1
active
oldest
votes
Here is a proposal. It comes with a command Ganttbarentry
that works very similarly to your own command ganttbarentry
except that it takes six instead of four parameters. The last two parameters are the start and end days, so e.g.
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6}
will give you a bar that stats at March 3 and ends at April 4.
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
newcommand{Ganttbarentry}[6]{%
ganttbar[/pgfgantt/bar left shift=#5/30,
/pgfgantt/bar right shift=#6/30,bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 15 - April 5th
Ganttbarentry{gray}{Task II}{2019-03}{2019-03}{15}{5} \%
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 4th - March 15th
Ganttbarentry{gray}{Task II}{2019-04}{2019-04}{4}{15} \%
end{ganttchart}
end{document}
This may be improved in many ways. One way is to make it parse the full date (instead having the user have to split it up by hand). This appears doable, but more effort than one may naively expect. And the current version assumes that every month has 30 days. Implementing this appears doable, too, but even more tedious.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477754%2fpgfgantt-resolution-month-for-title-day-for-bars%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a proposal. It comes with a command Ganttbarentry
that works very similarly to your own command ganttbarentry
except that it takes six instead of four parameters. The last two parameters are the start and end days, so e.g.
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6}
will give you a bar that stats at March 3 and ends at April 4.
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
newcommand{Ganttbarentry}[6]{%
ganttbar[/pgfgantt/bar left shift=#5/30,
/pgfgantt/bar right shift=#6/30,bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 15 - April 5th
Ganttbarentry{gray}{Task II}{2019-03}{2019-03}{15}{5} \%
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 4th - March 15th
Ganttbarentry{gray}{Task II}{2019-04}{2019-04}{4}{15} \%
end{ganttchart}
end{document}
This may be improved in many ways. One way is to make it parse the full date (instead having the user have to split it up by hand). This appears doable, but more effort than one may naively expect. And the current version assumes that every month has 30 days. Implementing this appears doable, too, but even more tedious.
add a comment |
Here is a proposal. It comes with a command Ganttbarentry
that works very similarly to your own command ganttbarentry
except that it takes six instead of four parameters. The last two parameters are the start and end days, so e.g.
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6}
will give you a bar that stats at March 3 and ends at April 4.
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
newcommand{Ganttbarentry}[6]{%
ganttbar[/pgfgantt/bar left shift=#5/30,
/pgfgantt/bar right shift=#6/30,bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 15 - April 5th
Ganttbarentry{gray}{Task II}{2019-03}{2019-03}{15}{5} \%
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 4th - March 15th
Ganttbarentry{gray}{Task II}{2019-04}{2019-04}{4}{15} \%
end{ganttchart}
end{document}
This may be improved in many ways. One way is to make it parse the full date (instead having the user have to split it up by hand). This appears doable, but more effort than one may naively expect. And the current version assumes that every month has 30 days. Implementing this appears doable, too, but even more tedious.
add a comment |
Here is a proposal. It comes with a command Ganttbarentry
that works very similarly to your own command ganttbarentry
except that it takes six instead of four parameters. The last two parameters are the start and end days, so e.g.
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6}
will give you a bar that stats at March 3 and ends at April 4.
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
newcommand{Ganttbarentry}[6]{%
ganttbar[/pgfgantt/bar left shift=#5/30,
/pgfgantt/bar right shift=#6/30,bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 15 - April 5th
Ganttbarentry{gray}{Task II}{2019-03}{2019-03}{15}{5} \%
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 4th - March 15th
Ganttbarentry{gray}{Task II}{2019-04}{2019-04}{4}{15} \%
end{ganttchart}
end{document}
This may be improved in many ways. One way is to make it parse the full date (instead having the user have to split it up by hand). This appears doable, but more effort than one may naively expect. And the current version assumes that every month has 30 days. Implementing this appears doable, too, but even more tedious.
Here is a proposal. It comes with a command Ganttbarentry
that works very similarly to your own command ganttbarentry
except that it takes six instead of four parameters. The last two parameters are the start and end days, so e.g.
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6}
will give you a bar that stats at March 3 and ends at April 4.
NeedsTeXFormat{LaTeX2e}
documentclass[10pt]{standalone}
usepackage{pgfgantt}
usepackage[scaled]{helvet}
newcommand{graphstart}{2019-01} % start of graph (two months buffer)
newcommand{graphend}{2019-09} % end date (two months buffer)
renewcommandfamilydefault{sfdefault}
% create a new command for a ganttbar entry
newcommand{ganttbarentry}[4]{%
ganttbar[bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
newcommand{Ganttbarentry}[6]{%
ganttbar[/pgfgantt/bar left shift=#5/30,
/pgfgantt/bar right shift=#6/30,bar/.append style={pattern color = #1}]{#2}{#3}{#4}%
}%
begin{document}
begin{ganttchart}[
vgrid,
hgrid,
x unit=0.47cm,
y unit chart=0.41cm,
time slot format=isodate-yearmonth,
time slot unit=month,
%compress calendar=true,
bar/.append style={pattern=north west lines, pattern color = cyan},%
]{graphstart}{graphend}
gantttitlecalendar{year, month}\
%
ganttgroup{Group I}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 15 - April 5th
Ganttbarentry{gray}{Task II}{2019-03}{2019-03}{15}{5} \%
ganttgroup{Group II}{2019-03}{2019-05} \%
% March 4th - 6th
Ganttbarentry{gray}{Task I}{2019-03}{2019-03}{4}{6} \%
% March 4th - March 15th
Ganttbarentry{gray}{Task II}{2019-04}{2019-04}{4}{15} \%
end{ganttchart}
end{document}
This may be improved in many ways. One way is to make it parse the full date (instead having the user have to split it up by hand). This appears doable, but more effort than one may naively expect. And the current version assumes that every month has 30 days. Implementing this appears doable, too, but even more tedious.
answered Mar 5 at 0:27
marmotmarmot
108k5131247
108k5131247
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477754%2fpgfgantt-resolution-month-for-title-day-for-bars%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You could "cheat":
ganttbar[ bar/.append style={xscale=1.5,xshift=1mm} ]{Task 2}{2019-03}{2019-03}
.– marmot
Mar 4 at 19:44
@marmot, thanks for the interest. I think that yyyy-mm-dd formatted input is a strict requirement here. A workaround would be a function or macro which takes yyyy-mm-dd and computes either a relative week number or relative day number. The problem I'm trying to avoid is the manual translation of calendar dates to day or week number.
– John Chris
Mar 4 at 22:00