Version

Chart Title and Subtitle

Topic Overview

Purpose

The title and subtitle feature of the UltraCategoryChart 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.

Required Background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides conceptual information about the UltraCategoryChart control including its main features, minimum requirements, and user functionality.

This topic explains how to bind data to the UltraCategoryChart control.

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:

Code Snippet

The following code example shows how to customize the title and subtitle:

In C#:

            this.ultraCategoryChart1.Name = "CategoryChart";
            this.ultraCategoryChart1.Title = "Energy Use Per Country";
            this.ultraCategoryChart1.TitleTextColor = System.Drawing.Color.FromArgb(244, 68, 75, 0);
            this.ultraCategoryChart1.TitleFontFamily = "Verdana";
            this.ultraCategoryChart1.TitleFontSize = 24;
            this.ultraCategoryChart1.Subtitle = "Results over a two year periods";
            this.ultraCategoryChart1.SubtitleTextColor = System.Drawing.Color.FromArgb(244, 68, 75, 0);
            this.ultraCategoryChart1.SubtitleFontFamily = "Verdana";
            this.ultraCategoryChart1.SubtitleFontSize = 16;

In Visual Basic:

            Me.ultraCategoryChart1.Name = "CategoryChart"
            Me.ultraCategoryChart1.Title = "Energy Use Per Country"
            Me.ultraCategoryChart1.TitleTextColor = System.Drawing.Color.FromArgb(244, 68, 75, 0)
            Me.ultraCategoryChart1.TitleFontFamily = "Verdana"
            Me.ultraCategoryChart1.TitleFontSize = 24
            Me.ultraCategoryChart1.Subtitle = "Results over a two year periods"
            Me.ultraCategoryChart1.SubtitleTextColor = System.Drawing.Color.FromArgb(244, 68, 75, 0)
            Me.ultraCategoryChart1.SubtitleFontFamily = "Verdana"
            Me.ultraCategoryChart1.SubtitleFontSize = 16
categorychart chart title subtitle 01.png

Related Content

Topic Purpose

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