SidePoint.Label Property
Specifies label settings of the side series point.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public SeriesLabelBase Label { get; set; }
#Property Value
Type | Description |
---|---|
Series |
A Series |
#Remarks
Specify the SidePoint.Label
property to customize label’s text color, background color, border options, text pattern, and other settings. Refer to the SeriesLabelBase’s Properties page for a list of available options.
#Example
This example shows how to customize side series points.
Use the XYDiagramSeriesViewBase.FirstPoint and LastPoint properties to access side point options.
To show labels, set the SidePoint.LabelDisplayMode property to SeriesPoint.
The code below customizes the following options of the first label:
The last point label uses default settings.
LineSeriesView seriesView = (LineSeriesView)chartControl1.Series[0].View;
seriesView.FirstPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint;
seriesView.LastPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint;
seriesView.FirstPoint.Label.BackColor = Color.LightGray;
seriesView.FirstPoint.Label.LineColor = Color.Red;
seriesView.FirstPoint.Label.Border.Color = Color.Red;
seriesView.FirstPoint.Label.Border.Thickness = 2;
seriesView.FirstPoint.Label.TextColor = Color.Red;
seriesView.FirstPoint.Label.TextPattern = "{V:F2}";