Skip to main content

RangeAreaSeries Class

Displays data as a filled area between two value sets.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts


public class RangeAreaSeries :


Use this series type to show the area between two value sets (for example, high and low temperatures, stock prices, blood pressure readings, etc.).

Range Area Series

Series Data

Set the RangeAreaSeries.Data property to the SeriesDataAdapter class instance to bind a range area series to data. Use the adapter’s properties to specify the data source whose members contain an argument field and two value fields (Value1 and Value2).

                <dxc:SeriesDataAdapter DataSource="{Binding CATemperature}" ArgumentDataMember="Month">
                    <dxc:ValueDataMember Type="Value1" Member="HighValue" />
                    <dxc:ValueDataMember Type="Value2" Member="LowValue" />
        <dxc:NumericAxisY AlwaysShowZeroLevel="False">
                <dxc:NumericRange Min="30" Max="95"/>
                <dxc:AxisTitle Text="°F" Alignment="Outside"/>
        <dxc:DateTimeAxisX MeasureUnit="Month">
                <dxc:AxisLabel TextFormat="MMMM"/>
                <dxc:DateTimeRange VisualMin="01/01/2019" VisualMax="12/01/2019"/>
Show View Model
public class MainViewModel {
   public List<RangeAreaDataItem> CATemperature { get; }

   public MainViewModel() {
        CATemperature = new List<RangeAreaDataItem> {
           new RangeAreaDataItem(new DateTime(2019, 1, 1), 68.67, 48.59),
           new RangeAreaDataItem(new DateTime(2019, 2, 1), 69.26, 49.72),
           new RangeAreaDataItem(new DateTime(2019, 3, 1), 70.14, 51.07),
           new RangeAreaDataItem(new DateTime(2019, 4, 1), 73.04, 54.94),
           new RangeAreaDataItem(new DateTime(2019, 5, 1), 74.82, 57.50),
           new RangeAreaDataItem(new DateTime(2019, 6, 1), 78.47, 60.51),
           new RangeAreaDataItem(new DateTime(2019, 7, 1), 83.21, 64.71),
           new RangeAreaDataItem(new DateTime(2019, 8, 1), 84.10, 64.17),
           new RangeAreaDataItem(new DateTime(2019, 9, 1), 83.09, 63.81),
           new RangeAreaDataItem(new DateTime(2019, 10, 1), 79.66, 59.82),
           new RangeAreaDataItem(new DateTime(2019, 11, 1), 73.11, 52.24),
           new RangeAreaDataItem(new DateTime(2019, 12, 1), 68.20, 47.20)

public class RangeAreaDataItem {
   public DateTime Month { get; }
   public double HighValue { get; }
   public double LowValue { get; }

   public RangeAreaDataItem(DateTime month, double highValue, double lowValue){
       Month = month;
       HighValue = highValue;
       LowValue = lowValue;

Range Area Series Data


ChartView chooses the X-axis type depending on data in the first series. If you need to explicitly specify the argument axis type for the chart or an individual series, use the ChartView.AxisX or Series.AxisX property. The assigned object should be compatible with the series data type. Otherwise, the chart does not display the series.

You can also create a custom data adapter, for example, to generate series points dynamically without a separate data storage.

Series Markers And Labels

Use the Line1MarkersVisible and Line2MarkersVisible properties to change the visibility of data point markers for each area line. To display series point markers in different colors, use the Line1PointColorizer and Line2PointColorizer properties.

Range Area Series Data

<dxc:RangeAreaSeries Line1MarkersVisible="True"

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.
  • Kind - Specifies what 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.

    DevExpress MAUI Charts - RangeAreaSeries - Label Positions

        <dxc:RangeAreaSeriesLabel TextPattern="{}{V$0.#}"
                        <dxc:TextStyle Color="DarkBlue" Size="10"/>


The ChartBaseView.Legend shows which color corresponds to which series.

Range Area Series Legend

A legend item includes a color marker and text that explains the series or series point data. The default item text is the series’ DisplayName (if the item displays the entire series) or a range area’s maximum, minimum, high or low values (if the item displays a series point, the RangeAreaSeries.LegendItemsBehavior property is set to EachPoint).

The series’ LegendTextPattern property allows you to configure the legend item string.

        <dxc:RangeAreaSeries DisplayName="California" 
                             LegendTextPattern="{}{S} (°F)">
        <dxc:RangeAreaSeries DisplayName="New-York" 
                             LegendTextPattern="{}{S} (°F)">
        <dxc:Legend HorizontalPosition="Left"

To exclude a particular series from the legend, set that series’ VisibleInLegend property to false.


The ChartView can display hints (ChartView.Hint) as tooltips or as a crosshair cursor that shows information about a tapped series or data point. Use the Series.HintOptions property to specify which data the series should use for a hint.


This example demonstrates how to set up the chart so that it shows a tooltip for a series point when a user taps it, and configure a tooltip for each series on the chart.

Range Area Series Tooltips

  1. Set the chart hint’s Behavior property to the TooltipHintBehavior class instance.
  2. Set each series’ HintOptions property to the SeriesHintOptions object and use the PointTextPattern property to specify the tooltip text pattern.
        PointTextPattern="{}{S}:&#10;Max temperature: {HV$0.##} &#10;Min temperature: {LV$0.##}"/>

                <dxc:TooltipHintBehavior ShowPointTooltip="True" ShowSeriesTooltip="False"/>

        <dxc:RangeAreaSeries HintOptions="{StaticResource areaSeriesHintOptions}">
            <!--Series Data-->
        <dxc:RangeAreaSeries HintOptions="{StaticResource areaSeriesHintOptions}">
            <!--Series Data-->

Crosshair Cursor

This example demonstrates how to set up the chart so that it shows a series point hint as a crosshair cursor, and how to specify the hint’s content, data format, and visibility options. The crosshair cursor appears on a long tap.

Range Area Series Crosshair

  1. Set the chart hint’s Behavior property to the CrosshairHintBehavior class instance.
  2. Set each series’ HintOptions property to the SeriesCrosshairOptions object and specify this object’s properties:
    • ShowInLabel - to specify whether the crosshair label should display information for points of the series.
    • PointTextPattern - to define the text pattern used to show information about the series point within a crosshair label.
    • AxisLineVisible, AxisLabelVisible - to specify whether the crosshair cursor should display axis lines and labels for the series.
        PointTextPattern="{}{S}:&#10;Max temperature: {HV$0.##} &#10;Min temperature: {LV$0.##}"

                <dxc:CrosshairHintBehavior GroupHeaderTextPattern="{}{A}"/>

        <dxc:RangeAreaSeries HintOptions="{StaticResource areaSeriesHintOptions}">
            <!--Series Data-->
        <dxc:RangeAreaSeries HintOptions="{StaticResource areaSeriesHintOptions}">
            <!--Series Data-->


A crosshair cursor also gets data from axes. Use the AxisBase.HintOptions property to specify the hint’s content, data format, and visibility options.

Text Patterns

Use text patterns to customize text in a chart’s labels, legend and hints. The pattern includes regular text (which is displayed as is) and placeholder strings enclosed in braces.




Displays a series name.


Displays a series point argument.


Displays a series point value.


Displays a series point Value1.


Displays a series point Value2.


Displays a series point maximum value of Value1 and Value2.


Displays a series point minimum value of Value1 and Value2.


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.

Series Appearance

Set the RangeAreaSeries.Style property to the RangeAreaSeriesStyle object with the following appearance settings to change the area color and opacity:

To change the area border style and marker size, set the RangeAreaSeriesStyle.Line1Style and RangeAreaSeriesStyle.Line2Style properties to the LineSeriesStyle object (with the specified appearance settings).

To specify the marker style, use the LineSeriesStyle.MarkerStyle property with a MarkerStyle object.

Range Series Appearance

        <dxc:RangeAreaSeriesStyle Fill="Red" Alpha="0.8">
                <dxc:LineSeriesStyle Stroke="Red" StrokeThickness="2" MarkerSize="20">
                        <dxc:MarkerStyle Fill="Orange" Stroke="DarkRed" StrokeThickness="2"/>
                <dxc:LineSeriesStyle Stroke="Red" StrokeThickness="2" MarkerSize="15">
                        <dxc:MarkerStyle Fill="White" Stroke="DarkRed" StrokeThickness="2"/>
See Also