Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SFBarSeries

    Show / Hide Table of Contents

    Class SFBarSeries

    Represents a bar chart. To render bar chart, create an instance of this class and add it to Series collection property and set the required properties.

    Inheritance
    System.Object
    SFSeries
    SFCartesianSeries
    SFXyDataSeries
    SFBarSeries
    Inherited Members
    SFXyDataSeries.OnBindingPathChanged()
    SFXyDataSeries.YBindingPath
    SFCartesianSeries.DrawInContext(CGContext)
    SFCartesianSeries.OnAttachedToChart()
    SFCartesianSeries.FindNearestChartPoint(Single, Single)
    SFCartesianSeries.FindNearestChartPoints(Single, Single)
    SFCartesianSeries.GetCardinalSpline(List<Double>, IList<Double>)
    SFCartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double)
    SFCartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double, Double)
    SFCartesianSeries.GetMonotonicSpline(List<Double>, IList<Double>, Double[])
    SFCartesianSeries.GetDataPoints(RectangleF)
    SFCartesianSeries.GetDataPoints(Double, Double, Double, Double)
    SFCartesianSeries.IsTransposed
    SFCartesianSeries.Trendlines
    SFCartesianSeries.XAxis
    SFCartesianSeries.YAxis
    SFCartesianSeries.ShowTrackballInfo
    SFCartesianSeries.ActualXAxis
    SFCartesianSeries.ActualYAxis
    SFSeries.InvalidateRender()
    SFSeries.Animate()
    SFSeries.CreateRenderer()
    SFSeries.InsertDataPointAtIndex(nint)
    SFSeries.RemoveDataPointAtIndex(nint)
    SFSeries.ReloadData()
    SFSeries.DrawLayer(CALayer, CGContext)
    SFSeries.DataPointIndexAtPoint(CGPoint)
    SFSeries.DrawMarker(CGContext, Double, Double, Int32)
    SFSeries.DrawLabel(NSString, CGContext, Double, Double, Int32)
    SFSeries.DrawConnectorLine(CGContext, Double, Double, Double, Double, NSColor, Int32)
    SFSeries.GeneratePoints(String[], IList<Double>[])
    SFSeries.ScheduleUpdateArea()
    SFSeries.GetSelectionColor()
    SFSeries.GetGradientStartPoint(SFChartSegment)
    SFSeries.GetGradientEndPoint(SFChartSegment)
    SFSeries.SetIndividualPoint(Int32, Object, Boolean)
    SFSeries.ClearUnUsedDataMarkerLabels(Int32)
    SFSeries.SeriesContainsPoint(CGPoint)
    SFSeries.OnDetachedFromChart()
    SFSeries.SetFillColor(SFChartSegment)
    SFSeries.SetStrokeWidth(SFChartSegment)
    SFSeries.SuspendNotification()
    SFSeries.ResumeNotification()
    SFSeries.EnableTooltip
    SFSeries.LegendIcon
    SFSeries.EnableDataPointSelection
    SFSeries.Visible
    SFSeries.VisibleOnLegend
    SFSeries.LayerFrame
    SFSeries.ListenPropertyChange
    SFSeries.DataMarker
    SFSeries.EnableAnimation
    SFSeries.AnimationDuration
    SFSeries.IsSelected
    SFSeries.SelectedDataPointIndex
    SFSeries.SelectedDataPointColor
    SFSeries.DataCount
    SFSeries.Name
    SFSeries.Color
    SFSeries.Alpha
    SFSeries.Label
    SFSeries.ItemsSource
    SFSeries.XBindingPath
    SFSeries.ColorModel
    SFSeries.XRange
    SFSeries.YRange
    SFSeries.Segments
    SFSeries.DataMarkerLabelCreated
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFBarSeries : SFXyDataSeries
    Remarks

    SFBarSeries 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.

    Constructors

    SFBarSeries()

    Initializes a new instance of the SFBarSeries class.

    Declaration
    public SFBarSeries()

    Properties

    BorderColor

    Gets or sets the border color of the series.

    Declaration
    public NSColor BorderColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    BorderWidth

    Gets or sets the border width of the series.

    Declaration
    public nfloat BorderWidth { get; set; }
    Property Value
    Type Description
    System.nfloat

    CornerRadius

    Gets or sets the value to draw rounded corners of the segments by using ChartCornerRadius.

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

    DataMarkerPosition

    Gets or sets the position of the data markers in series.

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

    Spacing

    Gets or sets the spacing between the segments.

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

    StrokeColor

    Gets or sets the color for the series stroke.

    Declaration
    public NSColor StrokeColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    Width

    Gets or sets the width of the segments.

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

    Methods

    AnimationForSegment(SFChartSegment)

    Declaration
    protected override CAAnimation AnimationForSegment(SFChartSegment segment)
    Parameters
    Type Name Description
    SFChartSegment segment
    Returns
    Type Description
    CoreAnimation.CAAnimation
    Overrides
    SFSeries.AnimationForSegment(SFChartSegment)

    CreateSegment()

    Create the SFBarSegment.

    Declaration
    protected override SFChartSegment CreateSegment()
    Returns
    Type Description
    SFChartSegment

    Returns a segment.

    Overrides
    SFCartesianSeries.CreateSegment()

    CreateSegments()

    Creates the segments of SFBarSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    SFCartesianSeries.CreateSegments()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved