Back to Devexpress

Chart Titles

aspnet-16002-components-chart-control-concepts-chart-elements-chart-titles.md

latest4.3 KB
Original Source

Chart Titles

  • Aug 30, 2023
  • 3 minutes to read

This topic describes how to create and customize chart titles, and illustrates their general functionality.

Note

The Chart Control can hide its elements if there is insufficient space to display them. Elements are hidden in the following order:

  1. Legends
  2. Axis Titles
  3. Series Titles
  4. Pane Titles
  5. Axes
  6. Chart Title
  7. Breadcrumbs

To make the Chart Control always display its elements, disable the WebChartControl.AutoLayout property.

Overview

Chart titles are used to add text headers and explanations to a chart. You can display an unlimited number of titles within a single chart.

Note

If a chart title’s length exceeds the chart size, you can use the AlignedTitle.WordWrap property to force the title’s text to be wrapped in multiple lines.

In addition, chart titles support HTML tags. This allows you to use standard HTML tags to format chart titles.

Refer to the following help topic to learn more about HTML support: HTML Text Formatting.

The section below describes how to create chart titles at design time.

Creation

Follow the steps below to access a chart’s title collection at design time.

  • Select the chart control, and in the Properties window, locate the WebChartControl.Titles property.

  • Click the title’s ellipsis button.

  • The Chart Title Collection Editor is displayed.

In this dialog, use the Add button to create chart titles.

After a title is created, you can customize its appearance and behavior.

Customization

Use the following properties to customize a chart title.

See Also

HTML-inspired Text Formatting

How to: Add Titles to a Chart

How to: Enable Word Wrapping for Chart Titles