Class StackingSeriesBase
Represents a base class for all stacked chart series in chart.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class StackingSeriesBase : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxes
Constructors
StackingSeriesBase()
Declaration
protected StackingSeriesBase()
Fields
GroupingLabelProperty
The DependencyProperty for GroupingLabel property. .
Declaration
public static readonly DependencyProperty GroupingLabelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
GroupingLabel
Gets or sets the label to group and stack the similar stacked series types. This is a bindable property.
Declaration
public string GroupingLabel { get; set; }
Property Value
Type |
---|
System.String |
Examples
<syncfusion:StackingColumnSeries GroupingLabel="Group1" ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
</syncfusion:StackingColumnSeries>
StackingColumnSeries series1 = new StackingColumnSeries();
series1.GroupingLabel="Group1";
chart.Series.Add(series1);
YRangeEndValues
Gets or sets the end y values collection to render the stacked series.
Declaration
protected IList<double> YRangeEndValues { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<System.Double> |
YRangeStartValues
Gets or sets the start y values collection to render the stacked series.
Declaration
protected IList<double> YRangeStartValues { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<System.Double> |
Methods
FindNearestChartPoint(Point, out Double, out Double, out Double)
Finds the nearest point in ChartSeries relative to the mouse point/touch position.
Declaration
public override void FindNearestChartPoint(Point point, out double x, out double y, out double stackedYValue)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point | The co-ordinate point representing the current mouse point /touch position. |
System.Double | x | x-value of the nearest point. |
System.Double | y | y-value of the nearest point |
System.Double | stackedYValue | stackedyvalue |
Overrides
GetCumulativeStackValues(ChartSeriesBase)
Returns the stacked value of the series.
Declaration
public StackingValues GetCumulativeStackValues(ChartSeriesBase series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeriesBase | series | ChartSeries instance |
Returns
Type | Description |
---|---|
StackingValues | returns StackedYValues |
GetStackedYValue(Int32)
Return stacked double value from the given index.
Declaration
protected double GetStackedYValue(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Used to specify the index of yvalues. |
Returns
Type | Description |
---|---|
System.Double | Returns the stacked yvalue. |
OnBindingPathChanged(DependencyPropertyChangedEventArgs)
Invoked when XBindingPath or YBindingPath properties changed.
Declaration
protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs that contains the event data |
Overrides
OnDataSourceChanged(IEnumerable, IEnumerable)
Invoked when ItemsSource property changed.
Declaration
protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | oldValue | Old itemssource collection. |
System.Collections.IEnumerable | newValue | New itemssource collection. |