[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Collapse]Chart Elements
     [Expand]Diagram
     [Expand]Series
      Panes
     [Collapse]Axes
       Primary and Secondary Axes
       Axis Scale Types
       Whole and Visual Ranges
       Axis Layout and Appearance
       Axis Labels
       Axis Titles
       Constant Lines
       Strips
       Scale Breaks
       Tickmarks, Grid Lines, and Interlacing
      Legends
      Chart Titles
      Annotations
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Examples
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Axis Titles

The 2D XY Diagram's Axes (both primary and secondary ones) can have a title.

This document consists of the following sections:

Expanded How to Add a Title to an Axis

The markup below shows how to create titles for x- and y-axes and specify their content:

Use the following classes and properties to configure axis titles:

Class or Property Description
XYDiagram2D The XY Diagram.
XYDiagram2D.AxisX Gets or sets an x-axis.
XYDiagram2D.AxisY Gets or sets a y-axis.
AxisX2D An x-axis.
AxisY2D A y-axis.
Axis.Title Gets or sets the axis title's options.
AxisTitle The axis title.
TitleBase.Content The axis title's content.

Expanded How to Modify Title Appearance

The Chart control makes it possible to alter the axis title's appearance in different ways. For example, you can assign a System.Windows.DataTemplate object to the TitleBase.ContentTemplate property.

The following XAML markup shows how to do this:

Use the following properties to apply a data template for axis title customization:

Property Description
TitleBase.Content Specifies a axis title content.
TitleBase.ContentTemplate Gets or sets a template that specifies how the title looks.
AxisTitle.Alignment Gets or sets the axis title's alignment.

Expanded See Also

Is this topic helpful?​​​​​​​