menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SFHistogramSeries

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

    SFHistogramSeries 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

    SFHistogramSeries()

    Declaration
    public SFHistogramSeries()

    Properties

    CurveColor

    Gets or sets the color of the distribution curve.

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

    DataMarkerPosition

    Gets or sets the marker position on the segment.

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

    Interval

    Gets or sets Interval double value which indicates the histogram interval.

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

    ShowNormalDistributionCurve

    Gets or sets ShowNormalDistributionCurve boolean value which indicates the normal distribution curve.

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

    StrokeColor

    Gets or sets the color for the series stroke.

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

    StrokeWidth

    Gets or sets the width for the series stroke width.

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    Methods

    AnimationForSegment(SFChartSegment)

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

    CreateSegment()

    Create the SFHistogramSegment.

    Declaration
    protected override SFChartSegment CreateSegment()
    Returns
    Type Description
    SFChartSegment

    Returns a segment.

    Overrides
    SFCartesianSeries.CreateSegment()

    CreateSegments()

    Creates the segments of .

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

    DrawDistributionCurve(CGContext, CGPoint[], NSColor, Single)

    Draw distribution curve.

    Declaration
    protected virtual void DrawDistributionCurve(CGContext context, CGPoint[] points, NSColor stroke, float strokeWidth)
    Parameters
    Type Name Description
    CoreGraphics.CGContext context

    The context

    CoreGraphics.CGPoint[] points

    The points of curve

    AppKit.NSColor stroke

    The color of curve

    System.Single strokeWidth

    The line width of curve

    DrawInContext(CGContext)

    Declaration
    public override void DrawInContext(CGContext context)
    Parameters
    Type Name Description
    CoreGraphics.CGContext context
    Overrides
    SFCartesianSeries.DrawInContext(CGContext)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved