Xamarin.Forms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StackingColumnSeries - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StackingColumnSeries

    To render a stacked column chart, create an instance of the StackingColumnSeries class, and add it to Series collection property and set the required properties.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    XyDataSeries
    StackingSeriesBase
    StackingColumnSeries
    StackingColumn100Series
    Inherited Members
    StackingSeriesBase.StrokeColorProperty
    StackingSeriesBase.GroupingLabelProperty
    StackingSeriesBase.StrokeColor
    StackingSeriesBase.GroupingLabel
    XyDataSeries.YBindingPathProperty
    XyDataSeries.GetChartDataPoints()
    XyDataSeries.YBindingPath
    CartesianSeries.XAxisProperty
    CartesianSeries.YAxisProperty
    CartesianSeries.IsTransposedProperty
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.TrackballLabelTemplateProperty
    CartesianSeries.TrendlinesProperty
    CartesianSeries.GetDataPoints(Rectangle)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.OnBindingContextChanged()
    CartesianSeries.OnParentSet()
    CartesianSeries.XAxis
    CartesianSeries.Trendlines
    CartesianSeries.YAxis
    CartesianSeries.IsTransposed
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.TrackballLabelTemplate
    ChartSeries.StrokeWidthProperty
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.DataMarkerProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSourceProperty
    ChartSeries.ColorProperty
    ChartSeries.LegendIconProperty
    ChartSeries.ColorModelProperty
    ChartSeries.EnableDataPointSelectionProperty
    ChartSeries.XBindingPathProperty
    ChartSeries.LabelProperty
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.SelectedDataPointIndexProperty
    ChartSeries.SelectedDataPointColorProperty
    ChartSeries.AnimationDurationProperty
    ChartSeries.EnableTooltipProperty
    ChartSeries.EnableAnimationProperty
    ChartSeries.TooltipTemplateProperty
    ChartSeries.OpacityProperty
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.SuspendNotification()
    ChartSeries.ResumeNotification()
    ChartSeries.Animate()
    ChartSeries.StrokeWidth
    ChartSeries.ListenPropertyChange
    ChartSeries.DataMarker
    ChartSeries.IsVisible
    ChartSeries.ItemsSource
    ChartSeries.XBindingPath
    ChartSeries.Color
    ChartSeries.Label
    ChartSeries.LegendIcon
    ChartSeries.IsVisibleOnLegend
    ChartSeries.ColorModel
    ChartSeries.EnableDataPointSelection
    ChartSeries.SelectedDataPointIndex
    ChartSeries.Opacity
    ChartSeries.SelectedDataPointColor
    ChartSeries.EnableTooltip
    ChartSeries.AnimationDuration
    ChartSeries.TooltipTemplate
    ChartSeries.EnableAnimation
    ChartSeries.IsSelected
    ChartSeries.DataMarkerLabelCreated
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class StackingColumnSeries : StackingSeriesBase, IThemeElement
    Remarks

    StackingColumnSeries 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();
    StackingColumnSeries series = new StackingColumnSeries();
    ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
    {
    new ChartDataPoint("2006",28),
    new ChartDataPoint("2007",38),
    new ChartDataPoint("2010",38)
    };
    series.ItemsSource = Data;
    
    StackingColumnSeries series1= new StackingColumnSeries();
    ObservableCollection<ChartDataPoint> Data1 = new ObservableCollection<ChartDataPoint>
    {
    new ChartDataPoint("2006",32),
    new ChartDataPoint("2007",43),
    new ChartDataPoint("2010",54)
    };
    series1.ItemsSource = Data1;
    
    chart.Series.Add(series);
    chart.Series.Add(series1);

    Constructors

    StackingColumnSeries()

    Declaration
    public StackingColumnSeries()

    Fields

    CornerRadiusProperty

    Gets or sets a value that defines the rounded corners for stacking column segments. This is a bindable property.

    Declaration
    public static readonly BindableProperty CornerRadiusProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty
    Remarks

    Although the property name suggests that CornerRadius also supports non-uniform radii. Radius values that are too large are scaled so that they blend smoothly from corner to corner.

    DataMarkerPositionProperty

    Gets or sets the position of the chart data markers in StackingColumnSeries. This is a bindable property.

    Declaration
    public static readonly BindableProperty DataMarkerPositionProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    SpacingProperty

    Gets or sets the value that defines the space between the adjacent stacking column segments. This is a bindable property.

    Declaration
    public static readonly BindableProperty SpacingProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    WidthProperty

    Gets or sets the value that defines the width of the stacking column segments. This is a bindable property.

    Declaration
    public static readonly BindableProperty WidthProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    CornerRadius

    Gets or sets a value that defines the rounded corners for stacking column segments. This is a bindable property.

    Declaration
    public ChartCornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    ChartCornerRadius

    DataMarkerPosition

    Gets or sets the position of the chart data markers in StackingColumnSeries. This is a bindable property.

    Declaration
    public DataMarkerPosition DataMarkerPosition { get; set; }
    Property Value
    Type Description
    DataMarkerPosition

    This property take the DataMarkerPosition as its value.

    Spacing

    Gets or sets the value that defines the space between the adjacent stacking column segments. This is a bindable property.

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

    This property takes the double value.

    Width

    Gets or sets the value that defines the width of the stacking column segments. This is a bindable property.

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

    This property takes the double value.

    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved