Class ChartAxis
Serves as a base class for all types of axis.
Inheritance
System.Object
ChartAxis
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ChartAxis : Object
Constructors
ChartAxis()
Declaration
Properties
AutoIntervalOnZoomingEnabled
Declaration
public bool AutoIntervalOnZoomingEnabled { get; set; }
Property Value
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
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 EdgeLabelsDrawingMode EdgeLabelsDrawingMode { get; set; }
Property Value
Interval
Declaration
public double Interval { get; set; }
Property Value
Inversed
Declaration
public bool Inversed { 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 AxisLabelsIntersectAction LabelsIntersectAction { get; set; }
Property Value
LabelStyle
Gets the options for customizing the axis labels.
Declaration
public ChartAxisLabelStyle LabelStyle { get; }
Property Value
LineStyle
Declaration
public ChartAxisLineStyle LineStyle { get; }
Property Value
MajorGridLineStyle
Gets the options for customizing the major gridlines.
Declaration
public ChartLineStyle MajorGridLineStyle { get; }
Property Value
MajorTickStyle
Gets the options for customizing the major tick lines.
Declaration
public ChartAxisTickStyle 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
Declaration
public string 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
ShowTrackballInfo
Gets or sets a value indicating whether to show the axis information, when the trackball is shown.
Declaration
public bool ShowTrackballInfo { get; set; }
Property Value
TickPosition
Gets or sets the position of the axis tick lines.
Declaration
public AxisElementPosition TickPosition { get; set; }
Property Value
Title
Gets the title for the axis.
Declaration
public AxisTitleStyle Title { get; }
Property Value
TrackballLabelStyle
Declaration
public ChartTrackballAxisLabelStyle TrackballLabelStyle { get; }
Property Value
Visibility
Gets or sets the value that indicates whether the axis is visible in the chart.
Declaration
public Visibility Visibility { get; set; }
Property Value
VisibleLabels
Declaration
public ObservableCollection<ChartAxis.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
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 |
|
CoefficientToValue(Double)
Declaration
public virtual double CoefficientToValue(double coefficient)
Parameters
Type |
Name |
Description |
System.Double |
coefficient |
|
Returns
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()
PointToValue(PointF)
Method used to get exact value in hit point.
Declaration
public float PointToValue(PointF point)
Parameters
Type |
Name |
Description |
Android.Graphics.PointF |
point |
The point.
|
Returns
Type |
Description |
System.Single |
The value.
|
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
ActualRangeChanged
Declaration
public event EventHandler<ChartAxis.ActualRangeChangedEventArgs> ActualRangeChanged
Event Type
LabelClicked
Event is raised, when the axis label is clicked.
Declaration
public event EventHandler<ChartAxis.ChartAxisLabelClickedEventArgs> LabelClicked
Event Type
LabelCreated
Event is raised, when the axis label is created.
Declaration
public event EventHandler<ChartAxis.LabelCreatedEventArgs> LabelCreated
Event Type