Class StackingAreaSeries
To render a stacked area chart, create an instance of the StackingAreaSeries class, and add it to Series collection property and set the required properties.
Inheritance
System.Object
StackingAreaSeries
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class StackingAreaSeries : StackingSeriesBase, IThemeElement
Remarks
StackingAreaSeries 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();
StackingAreaSeries series = new StackingAreaSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
series.ItemsSource = Data;
StackingAreaSeries series1 = new StackingAreaSeries();
ObservableCollection<ChartDataPoint> Data1 = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",22),
new ChartDataPoint("2007",42),
new ChartDataPoint("2010",21)
};
series1.ItemsSource = Data1;
chart.Series.Add(series);
chart.Series.Add(series1);
Constructors
StackingAreaSeries()
Declaration
public StackingAreaSeries()