Skip to main content

Series.Label Property

Gets the settings of series labels.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts


public SeriesLabel Label { get; set; }

Property Value

Type Description

A SeriesLabel object which provides the series label settings.


The Label property provides access to the settings that specify the appearance, contents, position and visibility of series labels.


The following example demonstrates how to change the appearance of series labels.

To accomplish this, it is necessary to create a DataTemplate that specifies the appearance of series labels, and add it to a window’s resource. Then, this template can be applied to a series label via its ChartTextElement.ElementTemplate property.


The chart control displays a crosshair cursor instead of series labels in the diagram by default. To provide series labels customization, enable series labels (set the Series.LabelsVisibility property to true) and disable the crosshair cursor (set the ChartControlBase.CrosshairEnabled property to false).

View Example

<Window x:Class="CustomLabelTemplate.Window1" 
        Title="Window1" Height="331" Width="488">
            <DataTemplate x:Key="template">
                <Border BorderThickness="1" CornerRadius="9" Opacity="1.0">
                        <SolidColorBrush Color="{Binding Path=Color}"/>
                    <Label Content="{Binding Path=Text}" Padding="5,1,5,1.5" 
                           Foreground="White" FontSize="10" />
        <dxc:ChartControl  CrosshairEnabled="False">
                        <dxc:BarSideBySideSeries2D LabelsVisibility="True" ColorEach="True">
                                <dxc:SeriesPoint Argument="A" Value="10" />
                                <dxc:SeriesPoint Argument="B" Value="20" />
                                <dxc:SeriesPoint Argument="C" Value="30" />
                                <dxc:SeriesPoint Argument="D" Value="40" />
                                <dxc:SeriesPoint Argument="E" Value="50" />
                                <dxc:SeriesLabel ConnectorVisible="False" ElementTemplate="{StaticResource template}" />
See Also