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.
Inherited Members
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
CreateSegment()
Create the SFHistogramSegment.
Declaration
protected override SFChartSegment CreateSegment()
Returns
Type | Description |
---|---|
SFChartSegment | Returns a segment. |
Overrides
CreateSegments()
Creates the segments of
Declaration
public override void CreateSegments()
Overrides
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 |