menu

UWP

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

    Show / Hide Table of Contents

    Class StackingAreaSeries

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

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    CartesianSeries
    XyDataSeries
    StackingSeriesBase
    StackingAreaSeries
    StackingArea100Series
    Implements
    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable
    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.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSideBySide
    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.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedSegment
    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.YRangeEndValues
    StackingSeriesBase.YRangeStartValues
    XyDataSeries.GeneratePoints()
    XyDataSeries.YBindingPath
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YValues
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class StackingAreaSeries : StackingSeriesBase, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
    Examples
          <syncfusion:StackingAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
          </syncfusion:StackingAreaSeries>
       StackingAreaSeries series1 = new StackingAreaSeries();
       series1.ItemsSource = viewmodel.Data;
       series1.XBindingPath = "Year";
       series1.YBindingPath = "Value";
       chart.Series.Add(series1);

    Constructors

    StackingAreaSeries()

    Declaration
    public StackingAreaSeries()

    Fields

    IsClosedProperty

    Identifies the IsClosed dependency property.

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

    The identifier for IsClosed 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.

    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

    IsAreaTypeSeries

    This property used to confirm whether it is area typed series.

    Declaration
    protected override bool IsAreaTypeSeries { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    ChartSeriesBase.IsAreaTypeSeries
    Remarks

    Returns true if its linear, otherwise it returns false.

    IsClosed

    Gets or sets a value that indicates whether area path should be closed or opened for StackingAreaSeries.

    Declaration
    public bool IsClosed { get; set; }
    Property Value
    Type Description
    System.Boolean

    If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. Default value is true.

    IsLinear

    The property confirms the linearity of this series.

    Declaration
    protected override bool IsLinear { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    ChartSeriesBase.IsLinear
    Remarks

    Returns true if its linear, otherwise it returns false.

    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.

    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

    SelectedSegments

    Gets the list of selected segments in this series, when we enable the multiple selection.

    Declaration
    protected override List<ChartSegment> SelectedSegments { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<ChartSegment>

    It returns the list of ChartSegment.

    Overrides
    ChartSeriesBase.SelectedSegments

    Methods

    CloneSeries(DependencyObject)

    Returns the instance of StackingAreaSeries 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 StackingAreaSeries.

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

    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.

    Overrides
    StackingSeriesBase.OnDataSourceChanged(IEnumerable, IEnumerable)
    See Also
    XBindingPath
    YBindingPath

    OnTapped(TappedRoutedEventArgs)

    Used to update the series tooltip when tapping on the series segments.

    Declaration
    protected override void OnTapped(TappedRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.TappedRoutedEventArgs e

    The Windows.UI.Xaml.Input.TappedRoutedEventArgs that contains the event data.

    Overrides
    ChartSeriesBase.OnTapped(TappedRoutedEventArgs)

    SelectedIndexChanged(Int32, Int32)

    Method used to set SegmentSelectionBrush to SelectedIndex segment.

    Declaration
    protected override void SelectedIndexChanged(int newIndex, int oldIndex)
    Parameters
    Type Name Description
    System.Int32 newIndex

    Used to specify the new selected index.

    System.Int32 oldIndex

    Used to specify the old selected index.

    Overrides
    ChartSeriesBase.SelectedIndexChanged(Int32, Int32)

    Implements

    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    StackingAreaSegment
    StackingColumnSeries
    StackingBarSeries
    AreaSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved