gantt - remove background grid possible?

0 votes
asked May 28 in Question / help by anonymous
I want to create kind of a "principal" gantt chart, showing tasks, dependencies and relative durations only - no actual start date and no actual scale.

Defining is pretty easy, I just don't give a start date, no scale, have all my durations defined in days and hide footbox. No problem.

However I have found no way to hide the background timegrid as well. Is it possible at all?

Thanks in advance and best regards

2 Answers

0 votes
answered May 28 by plantuml (262,940 points)

What about:

@startuml
<style>
ganttDiagram {
  document {
    backgroundColor transparent
  }
}
</style>
Project starts 2020-07-01
[Design du prototype] starts 2020-07-01
[Test du prototype] starts 2020-07-16
[Design du prototype] ends 2020-07-15
[Test du prototype] ends 2020-07-25
@enduml

Is this what you are looking for ?

commented May 28 by The-Lu (36,240 points)

Hello PlantUML team,

Is it possible to change the color of the timegrid?
and to the extreme make them transparent...

But, how to dissociate timegrid and border of the full gant diagram?

@startuml
<style>
ganttDiagram {
  document {
  backgroundColor transparent
  }
  timeline {
    BackgroundColor palegreen
    LineColor blue
    'LineColor transparent
 }
}
</style>
hide footbox

Project starts 2020-07-01
[Design du prototype] starts 2020-07-01
[Test du prototype] starts 2020-07-16
[Design du prototype] ends 2020-07-15
[Test du prototype] ends 2020-07-25
@enduml

Regards,
Th.

commented May 28 by anonymous

@The-Lu
you've nailed my question much better than I did smiley

@plantuml
actually colorizing or making transparent the background was not my intention. Hiding the timegrid and timeline is my final goal.I've been experimenting to find out how to colorize them (actually trying to have them colorized in the BackgroundColor), but to no avail so far. FontSize also seems to be automatic - is that so?

(I'm using plantuml 1.2021.5 currently)

0 votes
answered Jun 24 by The-Lu (36,240 points)

Hello all,

With last online version (v1.2021.8beta), you can use:

@startgantt
<style>
ganttDiagram {
  document {
    backgroundColor lightblue
  }
  timeline {
    LineColor transparent
    FontColor transparent
 }
}
</style>

hide footbox

[Test prototype] lasts 7 days
[Prototype completed] happens at [Test prototype]'s end
[Setup assembly line] lasts 3 days
[Setup assembly line] starts at [Test prototype]'s end
then [Setup] lasts 5 days
[T2] lasts 2 days and starts at [Test prototype]'s end
then [T3] lasts 3 days
then [T4] lasts 2 days
@endgantt

Enjoy,

Thanks to PlantUML team,

Awaiting now the official new version,
Regards,
Th.

commented Jun 25 by anonymous
Sounds good to me

Thanks to plantuml Team and @the-lu for supporting this request.
...