menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StackingColumnSeries - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StackingColumnSeries

    StackingColumnSeries is typically preferred in cases of multiple series of type ColumnSeries. Each series is stacked vertically one above the other.

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    CartesianSeries
    XyDataSeries
    StackingSeriesBase
    StackingColumnSeries
    StackingColumn100Series
    Implements
    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable
    ISegmentSpacing
    Inherited Members
    AdornmentSeries.AddAdornmentAtXY(Double, Double, Int32)
    AdornmentSeries.AddAreaAdornments(IList<Double>[])
    AdornmentSeries.AddColumnAdornments(Double[])
    AdornmentSeries.AdornmentLabelCreated
    AdornmentSeries.AdornmentsInfo
    AdornmentSeries.AdornmentsInfoProperty
    AdornmentSeries.ClearUnUsedAdornments(Int32)
    AdornmentSeries.CreateAdornment(AdornmentSeries, Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.IsTransposed
    CartesianSeries.IsTransposedProperty
    CartesianSeries.ISupportAxes.ActualXAxis
    CartesianSeries.ISupportAxes.ActualYAxis
    CartesianSeries.OnApplyTemplate()
    CartesianSeries.OnVisibleRangeChanged(VisibleRangeChangedEventArgs)
    CartesianSeries.OnXAxisChanged(ChartAxis, ChartAxis)
    CartesianSeries.OnYAxisChanged(ChartAxis, ChartAxis)
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.Trendlines
    CartesianSeries.TrendlinesProperty
    CartesianSeries.XAxis
    CartesianSeries.XAxisProperty
    CartesianSeries.XRange
    CartesianSeries.YAxis
    CartesianSeries.YAxisProperty
    CartesianSeries.YRange
    ChartSeries.Area
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.Stroke
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThickness
    ChartSeries.StrokeThicknessProperty
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.Adornments
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.Clone()
    ChartSeriesBase.ColorModel
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.ColorValues
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.CreateTransformer(Size, Boolean)
    ChartSeriesBase.DataCount
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.Interior
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsLinear
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSortData
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.Label
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.OnPointerExited(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerMoved(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerPressed(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerReleased(PointerRoutedEventArgs)
    ChartSeriesBase.OnSeriesMouseDown(Object, Point)
    ChartSeriesBase.OnSeriesMouseUp(Object, Point)
    ChartSeriesBase.OnTapped(TappedRoutedEventArgs)
    ChartSeriesBase.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedIndexChanged(Int32, Int32)
    ChartSeriesBase.SelectedSegment
    ChartSeriesBase.SelectedSegments
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.SortBy
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.Timer
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.UpdateSegments(Int32, NotifyCollectionChangedAction)
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.YPaths
    StackingSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    StackingSeriesBase.GetCumulativeStackValues(ChartSeriesBase)
    StackingSeriesBase.GetStackedYValue(Int32)
    StackingSeriesBase.GroupingLabel
    StackingSeriesBase.GroupingLabelProperty
    StackingSeriesBase.OnBindingPathChanged(DependencyPropertyChangedEventArgs)
    StackingSeriesBase.OnDataSourceChanged(IEnumerable, IEnumerable)
    StackingSeriesBase.YRangeEndValues
    StackingSeriesBase.YRangeStartValues
    XyDataSeries.GeneratePoints()
    XyDataSeries.YBindingPath
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YValues
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class StackingColumnSeries : StackingSeriesBase, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable, ISegmentSpacing
    Examples
          <syncfusion:StackingColumnSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
          </syncfusion:StackingColumnSeries>
       StackingColumnSeries series1 = new StackingColumnSeries();
       series1.ItemsSource = viewmodel.Data;
       series1.XBindingPath = "Year";
       series1.YBindingPath = "Value";
       chart.Series.Add(series1);

    Constructors

    StackingColumnSeries()

    Declaration
    public StackingColumnSeries()

    Fields

    CustomTemplateProperty

    Identifies the CustomTemplate dependency property.

    Declaration
    public static readonly DependencyProperty CustomTemplateProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    The identifier for CustomTemplate dependency property.

    SegmentSelectionBrushProperty

    Identifies the SegmentSelectionBrush dependency property.

    Declaration
    public static readonly DependencyProperty SegmentSelectionBrushProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    The identifier for SegmentSelectionBrush dependency property.

    SegmentSpacingProperty

    Identifies the SegmentSpacing dependency property.

    Declaration
    public static readonly DependencyProperty SegmentSpacingProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    The identifier for SegmentSpacing dependency property.

    SelectedIndexProperty

    Identifies the SelectedIndex dependency property.

    Declaration
    public static readonly DependencyProperty SelectedIndexProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    The identifier for SelectedIndex dependency property.

    Properties

    CustomTemplate

    Gets or sets the DataTemplate used to customize the shape appearence.

    Declaration
    public DataTemplate CustomTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate

    The template that specifies shape inside canvas. The default is null.

    Examples
    • MainWindow.xaml
        <chart:SfChart>
    
              <chart:SfChart.PrimaryAxis>
                  <chart:NumericalAxis/>
              </chart:SfChart.PrimaryAxis>
    
              <chart:SfChart.SecondaryAxis>
                  <chart:NumericalAxis/>
              </chart:SfChart.SecondaryAxis>
    
              <chart:StackedColumnSeries ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue">
                       <chart:StackedColumnSeries.CustomTemplate>
                           <DataTemplate>
                               <Canvas>
                                   <Rectangle Fill="{Binding Interior}" Width="{Binding Width}" Height="{Binding Height}"  
                                   Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}" Stroke="{Binding Stroke}"/>
                               </Canvas>
                           </DataTemplate>
                       </chart:StackedColumnSeries.CustomTemplate>
              </chart:StackedColumnSeries>
    
        </chart:SfChart>

    IsSideBySide

    Gets a value indicating whether this series is placed side by side.

    Declaration
    protected override bool IsSideBySide { get; }
    Property Value
    Type Description
    System.Boolean

    It returns true, if the series is placed side by side [cluster mode].

    Overrides
    ChartSeriesBase.IsSideBySide

    IsStacked

    Gets a value indicating whether this series is a stacked series.

    Declaration
    protected override bool IsStacked { get; }
    Property Value
    Type Description
    System.Boolean

    true if the series is one of stacked series; otherwise, false. The default value is true.

    Overrides
    ChartSeriesBase.IsStacked

    SegmentSelectionBrush

    Gets or sets the interior(brush) for the selected segment(s).

    Declaration
    public Brush SegmentSelectionBrush { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    SegmentSpacing

    Gets or sets the spacing between the segments across the series in cluster mode.

    Declaration
    public double SegmentSpacing { get; set; }
    Property Value
    Type Description
    System.Double

    The value ranges from 0 to 1 and its default value is 0.

    SelectedIndex

    Gets or sets the index of the first segment in the current selection or returns negative one (-1) if the selection is empty.

    Declaration
    public int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The index of first segment in the current selection. The default value is negative one (-1).

    See Also
    SegmentSelectionBrush

    Methods

    CalculateSegmentSpacing(Double, Double, Double)

    Method used to calculate the segment spacing.

    Declaration
    protected double CalculateSegmentSpacing(double spacing, double Right, double Left)
    Parameters
    Type Name Description
    System.Double spacing

    Segment spacing

    System.Double Right

    Segment right value

    System.Double Left

    Segment left value

    Returns
    Type Description
    System.Double

    Returns the segment spacing value.

    CloneSeries(DependencyObject)

    Returns the instance of StackingColumnSeries series.

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject obj

    object

    Returns
    Type
    Windows.UI.Xaml.DependencyObject
    Overrides
    XyDataSeries.CloneSeries(DependencyObject)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segments of StackingColumnSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    AdornmentSeries.CreateSegments()

    Explicit Interface Implementations

    ISegmentSpacing.CalculateSegmentSpacing(Double, Double, Double)

    Method used to calculate the segment spacing.

    Declaration
    double ISegmentSpacing.CalculateSegmentSpacing(double spacing, double Right, double Left)
    Parameters
    Type Name Description
    System.Double spacing

    Segment spacing value.

    System.Double Right

    Segment right value.

    System.Double Left

    Segment left value.

    Returns
    Type Description
    System.Double

    Returns the calculated segment space.

    Implements

    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable
    ISegmentSpacing

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    StackingColumnSegment
    StackingBarSeries
    StackingAreaSeries
    ColumnSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved