Back to Devexpress

RangeAreaSeriesLabel Class

maui-devexpress-dot-maui-dot-charts-aab80cce.md

latest4.1 KB
Original Source

RangeAreaSeriesLabel Class

Stores range area series label settings.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class RangeAreaSeriesLabel :
    SeriesLabel

The following members return RangeAreaSeriesLabel objects:

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>

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyledElement SeriesLabel RangeAreaSeriesLabel

Extension Methods

Yield<RangeAreaSeriesLabel>()

YieldIfNotNull<RangeAreaSeriesLabel>()

See Also

RangeAreaSeriesLabel Members

DevExpress.Maui.Charts Namespace