Class RangeAreaSeries
To render a range area chart, create an instance of the RangeAreaSeries class and add it to Series collection property and set the required properties.
Inheritance
System.Object
RangeAreaSeries
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class RangeAreaSeries : RangeSeriesBase, IThemeElement
Remarks
RangeAreaSeries requires ItemsSource, XBindingPath, High and Low properties to be set to render the chart. This series also requires x-axis and y-axis to be explicitly set either using PrimaryAxis and SecondaryAxis or XAxis and YAxis.
Examples
SfChart chart = new SfChart();
chart.PrimaryAxis = new NumericalAxis();
chart.SecondaryAxis = new NumericalAxis();
RangeAreaSeries series = new RangeAreaSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint(10, 873.8, 878.85),
new ChartDataPoint(20, 861, 868.4),
new ChartDataPoint(30, 846.15, 853),
new ChartDataPoint(40, 846, 860.75)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
RangeAreaSeries()
Initializes a new instance of the RangeAreaSeries class.
Declaration
public RangeAreaSeries()
Fields
StrokeColorProperty
The DependencyProperty for StrokeColor property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
StrokeColor
Gets or sets the stroke color to customize the appearance of RangeAreaSeries. This is a bindable property.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the double value. |