Skip to content

Latest commit

 

History

History
135 lines (99 loc) · 4.04 KB

categorychart-chart-title-subtitle.adoc

File metadata and controls

135 lines (99 loc) · 4.04 KB

Chart Title and Subtitle

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.

In this topic

This topic contains the following sections:

Property Settings

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

String

Title’s text content.

HorizontalAlignment

Title’s horizontal alignment.

FontFamily

Title’s font name.

double

Title’s font size

FontStyle

Title’s font style such as italic.

FontStretch

Title’s font stretch

FontWeight

Title’s font weight such as bold.

Brusht

Title’s text color.

Thickness

Title’s margin.

Brush

Subtitle’s text color.

FontFamily

Subtitle’s font name.

double

Subtitle’s text size.

FontStyle

Subtitle’s font style such as italic.

FontWeight

Subtitle’s font weight such as bold.

HorizontalAlignment

Subtitle’s horizontal alignment.

Thickness

Subtitle’s margin.

Code Snippet

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}>
categorychart chart title subtitle 01

Related Content

Topic Purpose

This article will get you up and running with the category chart control.