The title and subtitle feature of the {CategoryChartName} control allows you to add information to the top section of the chart control.
When adding a title or subtitle to the chart control, the content of the chart automatically resizes allowing for the title and subtitle information.
This topic contains the following sections:
You can customize the look and feel of the category chart’s subtitle and title in many different ways such as applying different font styles, margins, and alignment. This can be achieved through the following properties:
Property Name | Property Type | Description |
---|---|---|
|
Title’s text content. |
|
|
Title’s horizontal alignment. |
|
|
Title’s font name. |
|
|
Title’s font size |
|
|
Title’s font style such as italic. |
|
|
Title’s font stretch |
|
|
Title’s font weight such as bold. |
|
|
Title’s text color. |
|
|
Title’s margin. |
|
|
Subtitle’s text color. |
|
|
Subtitle’s font name. |
|
|
Subtitle’s text size. |
|
|
Subtitle’s font style such as italic. |
|
|
Subtitle’s font weight such as bold. |
|
|
Subtitle’s horizontal alignment. |
|
|
Subtitle’s margin. |
The following code example shows how to customize the title and subtitle:
In XAML:
<ig:{CategoryChartName} x:Name="CategoryChart"
Title="Energy Use Per Country”
TitleForeground="Red"
TitleFontFamily="Verdana”
TitleFontSize="24"
Subtitle="Results over a two year period”
SubtitleForeground="Red"
SubtitleFontFamily="Verdana”
SubtitleFontSize="16"
</ig:{CategoryChartName}>
Topic | Purpose |
---|---|
This article will get you up and running with the category chart control. |