In This Topic
You can add a title to the FlexChart control by setting its Header property. Besides a title, you may also set a footer for the chart by setting the Footer property. There are also some additional properties to customize header and footer text in a FlexChart.
- HeaderStyle - Allows you to get or set the chart header style.
- HeaderAlignment - Allows you to get or set the chart header alignment.
- FooterStyle - Allows you to get or set the chart footer style.
- FooterAlignment - Allows you to get or set the chart footer alignment.
The image below shows how the FlexChart appears, after setting the header and footer properties.

The following code example demonstrates how to set header and footer properties. The example uses the sample created in the Quick Start section.
In Code
C# |
Copy Code
|
// Set header text and color
chart.Header = "Sales Data of the year 2015";
chart.HeaderStyle.Fill = UIColor.Blue;
// Set footer text and color
chart.Footer = "Random Data by ComponentOne";
chart.FooterStyle.Fill = UIColor.Blue;
|