Version

Axis Titles

The axis title feature of the UltraCategoryChart 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:

Code Snippet

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

In C#:

this.ultraCategoryChart1.Name="chart1";
this.ultraCategoryChart1.XAxisTitleFontSize=16;
this.ultraCategoryChart1.XAxisTitleMargin=14;
this.ultraCategoryChart1.XAxisTitle="Country";
this.ultraCategoryChart1.XAxisTitleTextColor=System.Drawing.Color.FromArgb(29, 10, 173, 0);
this.ultraCategoryChart1.XAxisTitleTextStyle = FontStyle.Italic;
this.ultraCategoryChart1.YAxisTitleFontSize=12;
this.ultraCategoryChart1.YAxisTitle="Millions of People";
this.ultraCategoryChart1.YAxisTitleAngle=90;
this.ultraCategoryChart1.YAxisTitleTextColor=System.Drawing.Color.FromArgb(173, 37, 10, 0);

In Visual Basic:

Me.ultraCategoryChart1.Name="chart1"
Me.ultraCategoryChart1.XAxisTitleFontSize=16
Me.ultraCategoryChart1.XAxisTitleMargin=14
Me.ultraCategoryChart1.XAxisTitle="Country"
Me.ultraCategoryChart1.XAxisTitleTextColor=System.Drawing.Color.FromArgb(29, 10, 173, 0)
Me.ultraCategoryChart1.XAxisTitleTextStyle = FontStyle.Italic
Me.ultraCategoryChart1.YAxisTitleFontSize=12
Me.ultraCategoryChart1.YAxisTitle="Millions of People"
Me.ultraCategoryChart1.YAxisTitleAngle=90
Me.ultraCategoryChart1.YAxisTitleTextColor=System.Drawing.Color.FromArgb(173, 37, 10, 0)
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.