TChartTitle

TChartTitle
Hierarchy     Properties     Methods     

Unit
Chart

Description
The TChartTitle component is used to display Chart Title and Foot text strings at top and bottom Chart sides respectively.
The Text property contains the text to be displayed.
This property is of type TStrings which means that it is a series of strings in a list.
Whenever you change the Text property you should repaint the Chart component manually. It's not done automatically.

Example:

With Chart1.Title.Text do
begin
Clear;
Add('ACME Monthly Sales');
Add('Year: 1997');
end;

Chart1.Repaint;


Set the Visible property to True to show the Title or Foot contents.
Change the text appearance using the Font property.
You can draw a frame around text by setting the Frame pen properties.
The frame background color and pattern is defined by the Brush property.
The AdjustFrame boolean property controls if title frame will be drawn around title text or using the whole Chart width.
Title text can be aligned using the Alignment property.

The ParentChart public read-only property refers to the Chart component that owns the title.