Skip to main content

ChartControlBase.Titles Property

Gets or sets the collection of chart titles.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v22.2.dll

NuGet Package: DevExpress.Wpf.Charts


public TitleCollection Titles { get; }

Property Value

Type Description

A collection of Title objects.


This example demonstrates how to display a chart title as a group of checkboxes that control series visibility.

A chart with custom titles.

  • Define a WrapPanel with a set of CheckBox elements.
  • Bind their check state to the Series.Visible property of the corresponding series.
  • Add this WrapPanel as a chart title to the ChartControlBase.Titles collection.


You can also use legend checkboxes to manage series visibility.

View Example

<Window x:Class="CustomChartTitles.MainWindow"
        Title="Custom Chart Titles" Height="380" Width="650">
        <dxc:ChartControl Name="chart">
                    <WrapPanel Orientation="Vertical">
                        <CheckBox Name="chRed" Foreground="Red" IsChecked="True" FontSize="14">
                        <CheckBox Name="chGreen" Foreground="Green" IsChecked="True" FontSize="14">
                        <CheckBox Name="chBlue" Foreground="Blue" IsChecked="True" FontSize="14">
                                <dxc:AxisRange SideMarginsEnabled="False" />
                        <dxc:AreaSeries2D Name="Blue" Brush="Blue" Transparency="0.5" 
                                          Visible="{Binding ElementName=chBlue, Path=IsChecked}">
                                <dxc:SeriesPoint Argument="1" Value="0.5" />
                                <dxc:SeriesPoint Argument="2" Value="2" />
                                <dxc:SeriesPoint Argument="3" Value="1.5" />
                                <dxc:SeriesLabel Visible="False" />
                        <dxc:AreaSeries2D Name="Red" Brush="Red" Transparency="0.5" 
                                          Visible="{Binding ElementName=chRed, Path=IsChecked}">
                                <dxc:SeriesPoint Argument="1" Value="0.3" />
                                <dxc:SeriesPoint Argument="2" Value="1.8" />
                                <dxc:SeriesPoint Argument="3" Value="1.3" />
                                <dxc:SeriesLabel Visible="False" />
                        <dxc:AreaSeries2D Name="Green" Brush="Green" Transparency="0.5" 
                                          Visible="{Binding ElementName=chGreen, Path=IsChecked}">
                                <dxc:SeriesPoint Argument="1" Value="0.1" />
                                <dxc:SeriesPoint Argument="2" Value="1.6" />
                                <dxc:SeriesPoint Argument="3" Value="1.1" />
                                <dxc:SeriesLabel Visible="False" />

The following code snippets (auto-collected from DevExpress Examples) contain references to the Titles property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also