Skip to main content

RangeAreaSeriesLabel Class

Stores range area series label settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

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.

Range Area Series Labels

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:

    Placeholder

    Description

    {S}

    Displays a series name.

    {A}

    Displays a series point argument.

    {V}

    Displays a series point value.

    {V1}

    Displays a series point Value1.

    {V2}

    Displays a series point Value2.

    {HV}

    Displays a series point maximum value of Value1 and Value2.

    {LV}

    Displays a series point minimum value of Value1 and Value2.

    Note

    Use the default format strings after the $ sign to format these values.
    For example, in the {V$#.##} string, V is a placeholder, $ is a format string separator, and #.## is a format string.

  • 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.

<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>

Inheritance

See Also