menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support
Class StackingSeriesBase - MAUI-ToolKit API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StackingSeriesBase

    StackingSeriesBase is a base class for stacking chart series, including StackingColumnSeries,StackingColumn100Series,StackingLineSeries, StackingLine100Series, StackingAreaSeries, and StackingArea100Series.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    XYDataSeries
    StackingSeriesBase
    StackingAreaSeries
    StackingColumnSeries
    StackingLineSeries
    Inherited Members
    CartesianSeries.ActualXAxis
    CartesianSeries.ActualYAxis
    CartesianSeries.DataLabelSettings
    CartesianSeries.DataLabelSettingsProperty
    CartesianSeries.EmptyPointMode
    CartesianSeries.EmptyPointModeProperty
    CartesianSeries.EmptyPointSettings
    CartesianSeries.EmptyPointSettingsProperty
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.Label
    CartesianSeries.LabelProperty
    CartesianSeries.OnParentSet()
    CartesianSeries.ShowTrackballLabel
    CartesianSeries.ShowTrackballLabelProperty
    CartesianSeries.TrackballLabelTemplate
    CartesianSeries.TrackballLabelTemplateProperty
    CartesianSeries.XAxisName
    CartesianSeries.XAxisNameProperty
    CartesianSeries.YAxisName
    CartesianSeries.YAxisNameProperty
    ChartSeries.CreateAnimation(Action<Double>)
    ChartSeries.CreateSegment()
    ChartSeries.DrawDataLabel(ICanvas, Brush, String, PointF, Int32)
    ChartSeries.DrawSeries(ICanvas, ReadOnlyObservableCollection<ChartSegment>, RectF)
    ChartSeries.EnableAnimation
    ChartSeries.EnableAnimationProperty
    ChartSeries.EnableTooltip
    ChartSeries.EnableTooltipProperty
    ChartSeries.Fill
    ChartSeries.FillProperty
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.IsVisible
    ChartSeries.IsVisibleOnLegend
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSource
    ChartSeries.ItemsSourceProperty
    ChartSeries.LabelContext
    ChartSeries.LabelContextProperty
    ChartSeries.LabelTemplate
    ChartSeries.LabelTemplateProperty
    ChartSeries.LegendIcon
    ChartSeries.LegendIconProperty
    ChartSeries.ListenPropertyChange
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.Opacity
    ChartSeries.OpacityProperty
    ChartSeries.PaletteBrushes
    ChartSeries.PaletteBrushesProperty
    ChartSeries.SelectionBehavior
    ChartSeries.SelectionBehaviorProperty
    ChartSeries.ShowDataLabels
    ChartSeries.ShowDataLabelsProperty
    ChartSeries.TooltipTemplate
    ChartSeries.TooltipTemplateProperty
    ChartSeries.XBindingPath
    ChartSeries.XBindingPathProperty
    ChartSeries.XRange
    ChartSeries.YRange
    XYDataSeries.StrokeWidth
    XYDataSeries.StrokeWidthProperty
    XYDataSeries.YBindingPath
    XYDataSeries.YBindingPathProperty
    Namespace: Syncfusion.Maui.Toolkit.Charts
    Assembly: Syncfusion.Maui.Toolkit.dll
    Syntax
    public abstract class StackingSeriesBase : XYDataSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent

    Constructors

    StackingSeriesBase()

    Declaration
    protected StackingSeriesBase()

    Fields

    GroupingLabelProperty

    Identifies the GroupingLabel bindable property.

    Declaration
    public static readonly BindableProperty GroupingLabelProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty
    Remarks

    The GroupingLabel property allows for the grouping of series in a stacked chart.

    StrokeDashArrayProperty

    Identifies the StrokeDashArray bindable property.

    Declaration
    public static readonly BindableProperty StrokeDashArrayProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty
    Remarks

    The StrokeDashArray property specifies customization of the stroke patterns in the series.

    StrokeProperty

    Identifies the Stroke bindable property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty
    Remarks

    The Stroke property determines the brush used for the stroke (outline) of the series.

    Properties

    GroupingLabel

    This property allows for the grouping of series in a stacked chart.

    Declaration
    public string GroupingLabel { get; set; }
    Property Value
    Type Description
    System.String

    it accept string values and its default value is string.Empty.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
     <chart:StackingColumnSeries ItemsSource = "{Binding RoadSafetyData}"
                                 XBindingPath = "Month"
                                 YBindingPath = "Bus"
                                 GroupingLabel = "GroupOne"/>
    
     <chart:StackingColumnSeries ItemsSource = "{Binding RoadSafetyData}"
                                 XBindingPath = "Month"
                                 YBindingPath = "Car"
                                 GroupingLabel = "GroupTwo"/>
    
     <chart:StackingColumnSeries ItemsSource = "{Binding RoadSafetyData}"
                                 XBindingPath = "Month"
                                 YBindingPath = "Truck"
                                 GroupingLabel = "GroupOne"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        StackingColumnSeries stackingSeries1 = new StackingColumnSeries()
        {
              ItemsSource = viewModel.RoadSafetyData,
              XBindingPath = "Month",
              YBindingPath = "Bus",
              GroupingLabel = "GroupOne"
        };
        StackingColumnSeries stackingSeries2 = new StackingColumnSeries()
        {
              ItemsSource = viewModel.RoadSafetyData,
              XBindingPath = "Month",
              YBindingPath = "Car",
              GroupingLabel = "GroupTwo"
        };
        StackingColumnSeries stackingSeries3 = new StackingColumnSeries()
        {
              ItemsSource = viewModel.RoadSafetyData,
              XBindingPath = "Month",
              YBindingPath = "Truck",
              GroupingLabel = "GroupOne"
        };
    
        chart.Series.Add(stackingSeries1);
        chart.Series.Add(stackingSeries2);
        chart.Series.Add(stackingSeries3);

    Stroke

    Gets or sets a value to customize the stroke appearance.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    It accepts Microsoft.Maui.Controls.Brush values and its default value is null.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:StackingAreaSeries ItemsSource = "{Binding Data}"
                                       XBindingPath = "XValue"
                                       YBindingPath = "YValue"
                                       Stroke = "Red" />
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        StackingAreaSeries series = new StackingAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              Stroke = new SolidColorBrush(Colors.Red),
        };
    
        chart.Series.Add(series);

    StrokeDashArray

    Gets or sets the stroke dash array to customize the appearance of the stroke.

    Declaration
    public DoubleCollection StrokeDashArray { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.DoubleCollection

    It accepts the Microsoft.Maui.Controls.DoubleCollection value and the default value is null.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:StackingAreaSeries ItemsSource = "{Binding Data}"
                               XBindingPath = "XValue"
                               YBindingPath = "YValue"
                               StrokeDashArray = "5,3"
                               Stroke = "Red" />
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        DoubleCollection doubleCollection = new DoubleCollection();
        doubleCollection.Add(5);
        doubleCollection.Add(3);
        StackingAreaSeries series = new StackingAreaSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              YBindingPath = "YValue",
              StrokeDashArray = doubleCollection,
              Stroke = new SolidColorBrush(Colors.Red),
        };
    
        chart.Series.Add(series);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved