Version

Axis Titles

The axis title feature of the XamCategoryChart control allows you to add contextual information to the x and y axes of the chart.

In this topic

This topic contains the following sections:

Property Settings

You can customize the look and feel of the category chart’s x-axis and y-axis titles 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

Determines the text to be used for the x-axis and y-axis title

enumeration

Determines the horizontal alignment of the x-axis title and the vertical alignment of the y-axis title

double

Determines the angle rotation for the x-axis and y-axis titles

thickness

Determines the margin to be applied to the x-axis or y-axis title

string

Determines the color for the x-axis or y-axis title

FontStyle

Determines the font styles to be applied to the x-axis or y-axis title

Code Snippet

The following code example shows how to customize the titles on the x-axis and y-axis: In XAML:

<ig:XamCategoryChart x:Name="chart1"
                     XAxisTitleFontSize="16"
                     XAxisTitleMargin="14"
                     XAxisTitle="Country"
                     XAxisTitleForeground="Blue"
                     XAxisTitleFontStyle="Italic"
                     YAxisTitleFontSize="12"
                     YAxisTitle="Millions of People"
                     YAxisTitleAngle="90"
                     YAxisTitleForeground="Red">
</ig:XamCategoryChart>
categorychart configuring axis title 01.png

Related Content:

Topic Purpose

This article explains how to bind data to the Category Chart control.

This article will get you up and running with the Category Chart control.