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