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