Chart Titles

Overview

In AnyGantt there are 3 types of titles: title, subtitle and footer. In fact, the are all similar, it is just preferably that you use this order to keep logic. Here is a typical XML for a title (or subtitle, or footer, as you like):

<title align="Center" angle="0" position="Top">
  
<text>Title. Top. Angle = 0. Padding = 5</text>
  
<padding all="5" />
</title>

So any title has the following attributes: angle, defining the angle of rotation, from 0 to 360, align, the align of text - "near", "center" or "far", and position ("Top", "Left", "Right" and "Bottom") - the position of the current label. Subnodes are: text, containing your labeltext, and padding, containing information about title padding. padding has attributes: top, left, right, bottom and all affecting the corresponding sides.

Usage sample

Let's create a sample with all 3 types of titles. Let's place title at the upper part of our chart (position is "top"). We won't rotate it, so angle is "0". And align is center. XML is:

<title align="Center" angle="0" position="Top">
  
<text>Title. Top. Angle = 0. Padding = 5</text>
  
<padding all="5" />
</title>

And here is XML for Subtitle and Footer:

<settings>
  
<title align="Center" angle="0" position="Top">
    
<text>Title. Top. Angle = 0. Padding = 5</text>
    
<padding all="5" />
  
</title>
  
<subtitle align="Center" angle="270" position="Left">
    
<text>Subtitle. Top. Angle = 270. Padding = 5</text>
    
<padding all="5" />
  
</subtitle>
  
<footer align="Left" angle="90" position="Right">
    
<text>Footer. Top. Angle = 90. Padding = 5</text>
    
<padding all="5" />
  
</footer>
</settings>

As you can see subtitle is located in the left side of the chart, and footer - in the right. Both of them are rotated the corresponding degree. Here is what we get:

Gantt titles sample 1 - Click to see Live Chart Preview
Gantt titles sample 1 - Click to see Live Chart Preview

to top