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