Gantt chart: How to format captions

0 votes
asked Jan 31, 2022 in Question / help by Lora
How can I change the following parameters of captions:

Left aligntext, define font, font size, font colour, and font style (bold, italic, plain).

1 Answer

0 votes
answered Jan 31, 2022 by The-Lu (63,920 points)

Hello L.,

For that you can use style, as:

@startgantt
<style>
caption {
  HorizontalAlignment left
  FontName Serif
  FontSize 19
  FontColor green
  FontStyle italic

  BackGroundColor yellow
}
</style>
[Prototype design] lasts 15 days
[Test prototype] lasts 10 days
then [T2 (5 days)] lasts 5 days

caption
that is
a caption
end caption
@endgantt

If that can help,
Regards,
Th.

commented Feb 4, 2022 by Lora
This was precisely what I needed!

Thank you for your help.
...