Is it possible to color the days in the default Gantt Diagram?

0 votes
asked Sep 3, 2021 in Question / help by SuperSaiyanGod (340 points)

For the Gantt Diagram of the calendar form (that starts with something like

Project starts the 2020/09/01

), you can color the days with the following statement:

2020/09/13 to 2020/09/16 are colored in lightblue

But it seems impossible to color the days without that initial statement. (I tried "Day1" and "Day 1", but neither worked.)

(It may sounds a bit strange, but I'm currently using Gantt Diagram to demonstrate how variables change in a program process, so the calendar form isn't what I want.)

commented Sep 3, 2021 by The-Lu (86,940 points)

Hello. S,

  • What is 'Day1' or 'Day 1'?

Regards,
Th.

commented Sep 16, 2021 by The-Lu (86,940 points)

Hello S.,

I'm currently using Gantt Diagram to demonstrate how variables change in a program process, so the calendar form isn't what I want.

Have you an example of your works in progress...
in order to confirm the implementation, and also to put with all the other doc.

Regards,
Th.

1 Answer

0 votes
answered Sep 3, 2021 by The-Lu (86,940 points)

Hello S.,

Here is a proposal:

@startgantt
<style>
ganttDiagram {
  timeline {
    'LineColor transparent
    FontColor transparent
  }
}
</style>

hide footbox
project starts the 2021/01/01
2021/01/05 to 2021/01/07 are colored in lightblue

[Var. A] as [A] lasts 9 days
[Var. B] as [B] lasts 5 days
[B] starts at [A]'s end
[A] is colored in Fuchsia/FireBrick
[B] is colored in GreenYellow/Green

2021/01/11 is colored in gold
2021/01/12 is colored in orange
2021/01/13 is colored in red
-- note --
@endgantt

See also doc. here; see 'Clean style', on:

If that can help,
Regards,
Th.

commented Nov 28, 2025 by MarioKusek (100 points)
Is it possible to add M for months? In long projects we count everything in months. So task "requires 5 months" or "task starts M+4" for task starting in the beginning of month 5.
commented Nov 28, 2025 by plantuml (297,300 points)

It would be possible, but only if M always represented exactly 30 days, which is not necessarily accurate.
Would that still be acceptable for you? It could lead to some confusion.

commented Nov 29, 2025 by MarioKusek (100 points)
That would be fine for quick fix and estimated gantt.
commented Nov 29, 2025 by MarioKusek (100 points)
Thanks this helps a lot.

It is not perfect. If I can help please contact me.
...