Class AreaSeries
To render an area chart, create an instance of AreaSeries class and add it to Series collection property and set the required properties.
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class AreaSeries : XyDataSeries, IThemeElement
Remarks
AreaSeries requires ItemsSource, XBindingPath and YBindingPath 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 CategoryAxis();
chart.SecondaryAxis = new NumericalAxis();
AreaSeries areaSeries = new AreaSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
areaSeries.ItemsSource = Data;
chart.Series.Add(areaSeries);
Constructors
AreaSeries()
Declaration
public AreaSeries()
Fields
StrokeColorProperty
Gets or sets the stroke color to customize the appearance of AreaSeries. This is a bindable 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 AreaSeries. This is a bindable property.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the Xamarin.Forms.Color value. |