Skip to main content

SidePoint.Label Property

Specifies the side series point’s label settings.

Namespace: DevExpress.Xpf.Charts

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


public SeriesLabel Label { get; set; }

Property Value

Type Description

A SeriesLabel object that specifies label settings.


Specify the SidePoint.Label property to customize label’s text color, border options, text pattern, and other settings. Refer to the SeriesLabel’s Properties page for a list of available options.


This example shows how to create a template that customizes the side point label appearance.

Use the XYSeries2D.FirstPoint and LastPoint properties to access side point options.

To show labels, set the SidePoint.LabelDisplayMode property to SeriesPoint.

The markup below specifies SeriesLabel.ElementTemplate and customizes the first label appearance:

  • background color
  • text color
  • font size
  • border corner radius
  • border thickness

The last point label uses default settings.

        <DataTemplate x:Key="labelTemplate">
            <Border BorderThickness="1" CornerRadius="4" Opacity="1.0">
                    <SolidColorBrush Color="DarkRed"/>
                <Label Content="{Binding Path=Text}" Padding="2,2,2,1.5" 
        Foreground="White" FontSize="13" />
<dxc:ChartControl x:Name="ChartControl1" ...>
        <dxc:SplineSeries2D Name="xSplineSeries2D" LabelsVisibility="False" ...>
                <dxc:SidePoint LabelDisplayMode="SeriesPoint">
                        <dxc:SeriesLabel ElementTemplate="{StaticResource labelTemplate}"/>
                <dxc:SidePoint LabelDisplayMode="SeriesPoint">
See Also