Back to Devexpress

RangeAreaSeries.Label Property

maui-devexpress-dot-maui-dot-charts-dot-rangeareaseries.md

latest3.3 KB
Original Source

RangeAreaSeries.Label Property

Gets or sets the series label settings. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public RangeAreaSeriesLabel Label { get; set; }

Property Value

TypeDescription
RangeAreaSeriesLabel

An object that stores the series label settings.

|

Remarks

You can add labels to data point markers to show point values as text on a chart.

To enable labels for a range area series, set the RangeAreaSeries.Label property to the RangeAreaSeriesLabel object, and use this object’s properties to change the label’s settings:

  • TextPattern - Formats series label text.
    A pattern includes regular text (which is displayed as is) and placeholder strings enclosed in braces. Placeholders define which values are shown in labels. You can use the following placeholders to specify the text pattern for range area series’ labels:

  • Kind - Specifies the range area values (high, low, or both) labels should display.

  • Indent - Specifies how labels are positioned relative to points.

  • Style - Provides access to the SeriesLabelStyle object that stores label appearance settings (TextStyle).

  • Visible - Allows you to show or hide labels for the series.

  • HighValueAngle - Sets the position of high value labels relative to the markers.

  • LowValueAngle - Sets the position of low value labels relative to the markers.

  • Xaml

xml
<dxc:RangeAreaSeries>
    <dxc:RangeAreaSeries.Label>
        <dxc:RangeAreaSeriesLabel TextPattern="{}{V$0.#}"
                                  Kind="TwoLabels"
                                  HighValueAngle="270" 
                                  LowValueAngle="90"
                                  Indent="15">
            <dxc:RangeAreaSeriesLabel.Style>
                <dxc:SeriesLabelStyle>
                    <dxc:SeriesLabelStyle.TextStyle>
                        <dxc:TextStyle Color="DarkBlue" Size="10"/>
                    </dxc:SeriesLabelStyle.TextStyle>
                </dxc:SeriesLabelStyle>
            </dxc:RangeAreaSeriesLabel.Style>
        </dxc:RangeAreaSeriesLabel>
    </dxc:RangeAreaSeries.Label>
</dxc:RangeAreaSeries>

See Also

RangeAreaSeries Class

RangeAreaSeries Members

DevExpress.Maui.Charts Namespace