Class SplineAreaSeries
Represents a spline area chart. To render this chart, create an instance of this 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 SplineAreaSeries : XyDataSeries, IThemeElement
Remarks
SplineAreaSeries 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();
SplineAreaSeries series = new SplineAreaSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
SplineAreaSeries()
Declaration
public SplineAreaSeries()
Fields
SplineTypeProperty
Gets or sets the spline type of spline area series. This is a bindable property.
Declaration
public static readonly BindableProperty SplineTypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets the stroke color to customize the appearance of SplineAreaSeries. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
SplineType
Gets or sets SplineType enum value which indicates the spline area series type.
Declaration
public SplineType SplineType { get; set; }
Property Value
Type |
---|
SplineType |
StrokeColor
Gets or sets the stroke color to customize the appearance of SplineAreaSeries. 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. |