Class SFAxis
Serves as a base class for all types of axis.
Inheritance
System.Object
SFAxis
Assembly: Syncfusion.SFChart.iOS.dll
Syntax
public abstract class SFAxis : Object
Constructors
SFAxis()
Declaration
Properties
Gets or sets the value that determines the range of value to be visible during auto scrolling.
Declaration
public double AutoScrollingDelta { get; set; }
Property Value
Gets or sets the mode to determine whether the axis should be auto scrolled at start or end position by using ChartAutoScrollingMode enum type.
Declaration
public ChartAutoScrollingMode AutoScrollingMode { get; set; }
Property Value
AxisLineOffset
Gets or sets offset value for the axis line.
Declaration
public float AxisLineOffset { get; set; }
Property Value
AxisLineStyle
Gets the options for customizing the axis line.
Declaration
public SFAxisLineStyle AxisLineStyle { get; }
Property Value
CrossesAt
Gets or sets date time or double that represents crossing value to axis.
Declaration
public object CrossesAt { get; set; }
Property Value
CrossingAxisName
Gets or sets the string value that represents name of the crossing axis.
Declaration
public string CrossingAxisName { get; set; }
Property Value
EdgeLabelsDrawingMode
Gets or sets a drawing mode of the axis labels for better user experience.
Declaration
public SFChartAxisEdgeLabelsDrawingMode EdgeLabelsDrawingMode { get; set; }
Property Value
EnableAutoIntervalOnZooming
Gets or sets a value indicating whether to calculate the axis intervals on zooming.
Declaration
public bool EnableAutoIntervalOnZooming { get; set; }
Property Value
Interval
Gets or sets the interval value that represents the number of division required in the chart axis.
Declaration
public NSObject Interval { get; set; }
Property Value
IsInversed
Gets or sets a value indicating whether the axis visible range is inversed.
Declaration
public bool IsInversed { get; set; }
Property Value
IsVertical
Gets or sets a value indicating whether the axis should be placed in X or Y axis.
Declaration
public bool IsVertical { get; set; }
Property Value
LabelExtent
Gets or sets the value that determines the distance between the axis label and axis title.
Declaration
public float LabelExtent { get; set; }
Property Value
LabelRotationAngle
Gets or sets the rotation angle of the axis labels.
Declaration
public float LabelRotationAngle { get; set; }
Property Value
LabelsIntersectAction
Gets or sets an action to be taken when two labels intersect in bounds.
Declaration
public SFChartAxisLabelsIntersectAction LabelsIntersectAction { get; set; }
Property Value
LabelStyle
Gets the options for customizing the axis labels.
Declaration
public SFAxisLabelStyle LabelStyle { get; }
Property Value
MajorGridLineStyle
Gets the options for customizing the major gridlines.
Declaration
public SFAxisGridLineStyle MajorGridLineStyle { get; }
Property Value
MajorTickStyle
Gets the options for customizing the major tick lines.
Declaration
public SFAxisTickStyle MajorTickStyle { get; }
Property Value
MaximumLabels
Gets or sets the value that determines the number of labels to be displayed per 100 pixels.
Declaration
public int MaximumLabels { get; set; }
Property Value
Name
Gets or sets the unique name of the axis, which will be used to identify the segment axis of the strip line.
Declaration
public NSString Name { get; set; }
Property Value
OpposedPosition
Gets or sets a value indicating whether to draw axis at the opposite side of axis in the chart.
Declaration
public bool OpposedPosition { get; set; }
Property Value
PlotOffset
Gets or sets the value from which the axis elements like label, tick lines will be drawn inside axis bounds.
Declaration
public float PlotOffset { get; set; }
Property Value
PlotOffsetEnd
Gets or sets the value that used to offset the rendering of the axis at end position.
Declaration
public double PlotOffsetEnd { get; set; }
Property Value
Type |
Description |
System.Double |
The default value is 0.
|
See Also
PlotOffsetStart
Gets or sets the value that used to offset the rendering of the axis at start position.
Declaration
public double PlotOffsetStart { get; set; }
Property Value
Type |
Description |
System.Double |
The default value is 0.
|
See Also
PolarAngle
Gets or sets the angle as a start position for polar or radar series by using ChartPolarAngle enum type.
Declaration
public ChartPolarAngle PolarAngle { get; set; }
Property Value
RangeStyles
Gets or sets the collection of the ChartAxisRangeStyle to customize the axis GridLine, TickLine and LabelStyle for specific range.
Declaration
public ChartAxisRangeStyleCollection RangeStyles { get; set; }
Property Value
RenderNextToCrossingValue
Gets or sets a value indicating whether the crossing axis should be placed at crossing position or not.
Declaration
public bool RenderNextToCrossingValue { get; set; }
Property Value
ShowMajorGridLines
Gets or sets a value indicating whether to show the major gridlines for the axis.
Declaration
public bool ShowMajorGridLines { get; set; }
Property Value
TickPosition
Gets or sets the position of the axis tick lines.
Declaration
public SFChartAxisElementPosition TickPosition { get; set; }
Property Value
Title
Gets the title for the axis.
Declaration
public SFAxisTitleStyle Title { get; }
Property Value
TrackballLabelStyle
Gets the customized style for the axis trackball label.
Declaration
public SFChartTrackballAxisLabelStyle TrackballLabelStyle { get; }
Property Value
Visible
Gets or sets a value indicating whether the axis is visible in the chart.
Declaration
public bool Visible { get; set; }
Property Value
VisibleLabels
Declaration
public ObservableCollection<SFAxis.ChartAxisLabel> VisibleLabels { get; }
Property Value
VisibleRange
Declaration
public DoubleRange VisibleRange { get; }
Property Value
ZoomFactor
Gets or sets the value, between 0 to 1, that indicates the zoom level of the axis.
Declaration
public double ZoomFactor { get; set; }
Property Value
ZoomPosition
Gets or sets the value, between 0 to 1, that indicates the start position in the actual range of the axis.
Declaration
public double ZoomPosition { get; set; }
Property Value
Methods
AddStripLine(SFChartStripLine)
Declaration
public virtual void AddStripLine(SFChartStripLine stripLine)
Parameters
ApplyRangePadding(DoubleRange, Double)
Declaration
protected virtual DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
System.Double |
interval |
|
Returns
CalculateActualInterval(DoubleRange, SizeF)
Declaration
protected virtual double CalculateActualInterval(DoubleRange range, SizeF availableSize)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
System.Drawing.SizeF |
availableSize |
|
Returns
CalculateActualRange()
Declaration
protected virtual DoubleRange CalculateActualRange()
Returns
CalculateNiceInterval(DoubleRange, SizeF)
Declaration
protected virtual double CalculateNiceInterval(DoubleRange actualRange, SizeF availableSize)
Parameters
Type |
Name |
Description |
DoubleRange |
actualRange |
|
System.Drawing.SizeF |
availableSize |
|
Returns
CalculateVisibleRange(SizeF)
Declaration
protected virtual void CalculateVisibleRange(SizeF availableSize)
Parameters
Type |
Name |
Description |
System.Drawing.SizeF |
availableSize |
|
CalculateVisibleRangeWithSize(CGSize)
Declaration
protected void CalculateVisibleRangeWithSize(CGSize availableSize)
Parameters
Type |
Name |
Description |
CoreGraphics.CGSize |
availableSize |
|
ClearStripLines()
Declaration
public virtual void ClearStripLines()
CoefficientForValue(Double)
Declaration
public double CoefficientForValue(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
CoefficientToValue(Double)
Declaration
public virtual double CoefficientToValue(double coefficient)
Parameters
Type |
Name |
Description |
System.Double |
coefficient |
|
Returns
DrawGridLinesInContext(CGContext)
Declaration
public virtual void DrawGridLinesInContext(CGContext context)
Parameters
Type |
Name |
Description |
CoreGraphics.CGContext |
context |
|
DrawInContext(CGContext)
Declaration
public virtual void DrawInContext(CGContext context)
Parameters
Type |
Name |
Description |
CoreGraphics.CGContext |
context |
|
DrawStripLinesInContext(CGContext)
Declaration
public virtual void DrawStripLinesInContext(CGContext context)
Parameters
Type |
Name |
Description |
CoreGraphics.CGContext |
context |
|
GenerateVisibleLabels()
Method implementation for Generate Labels in ChartAxis
Declaration
protected virtual void GenerateVisibleLabels()
GetActualDesiredIntervalsCount(SizeF)
Declaration
protected double GetActualDesiredIntervalsCount(SizeF availableSize)
Parameters
Type |
Name |
Description |
System.Drawing.SizeF |
availableSize |
|
Returns
OnPropertyChanged()
Declaration
protected virtual void OnPropertyChanged()
PointForValue(Double)
Declaration
public double PointForValue(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
RemoveStripLine(SFChartStripLine)
Declaration
public virtual void RemoveStripLine(SFChartStripLine stripLine)
Parameters
ValueForCoefficient(Double)
Declaration
public double ValueForCoefficient(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ValueForPoint(CGPoint)
Declaration
public double ValueForPoint(CGPoint point)
Parameters
Type |
Name |
Description |
CoreGraphics.CGPoint |
point |
|
Returns
ValueToCoefficient(Double)
Declaration
public virtual float ValueToCoefficient(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ValueToPoint(Double)
Declaration
public float ValueToPoint(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ValueToPolarCoefficient(Double)
Declaration
public virtual float ValueToPolarCoefficient(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Events
LabelClicked
Event is raised, when the axis label is clicked.
Declaration
public event EventHandler<SFAxis.ChartAxisLabelClickedEventArgs> LabelClicked
Event Type
LabelCreated
Event is raised, when the axis label is created.
Declaration
public event EventHandler<SFAxis.LabelCreatedEventArgs> LabelCreated
Event Type