Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartAxis - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartAxis

    Serves as a base class for all types of axis.

    Inheritance
    System.Object
    ChartAxis
    CategoryAxis
    DateTimeCategoryAxis
    RangeAxisBase
    Namespace: Com.Syncfusion.Charts
    Assembly: Syncfusion.SfChart.Android.dll
    Syntax
    public abstract class ChartAxis : Object

    Constructors

    ChartAxis()

    Declaration
    public ChartAxis()

    Properties

    AutoIntervalOnZoomingEnabled

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

    AutoScrollingDelta

    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
    Type Description
    System.Double

    AutoScrollingMode

    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
    Type Description
    ChartAutoScrollingMode

    AxisLineOffset

    Gets or sets offset value for the axis line.

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

    CrossesAt

    Gets or sets date time or double that represents crossing value to axis.

    Declaration
    public object CrossesAt { get; set; }
    Property Value
    Type Description
    System.Object

    CrossingAxisName

    Gets or sets the string value that represents name of the crossing axis.

    Declaration
    public string CrossingAxisName { get; set; }
    Property Value
    Type Description
    System.String

    EdgeLabelsDrawingMode

    Gets or sets a drawing mode of the axis labels for better user experience.

    Declaration
    public EdgeLabelsDrawingMode EdgeLabelsDrawingMode { get; set; }
    Property Value
    Type Description
    EdgeLabelsDrawingMode

    Interval

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

    Inversed

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

    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
    Type Description
    System.Boolean

    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
    Type Description
    System.Single

    LabelRotationAngle

    Gets or sets the rotation angle of the axis labels.

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

    LabelsIntersectAction

    Gets or sets an action to be taken when two labels intersect in bounds.

    Declaration
    public AxisLabelsIntersectAction LabelsIntersectAction { get; set; }
    Property Value
    Type Description
    AxisLabelsIntersectAction

    LabelStyle

    Gets the options for customizing the axis labels.

    Declaration
    public ChartAxisLabelStyle LabelStyle { get; }
    Property Value
    Type Description
    ChartAxisLabelStyle

    LineStyle

    Declaration
    public ChartAxisLineStyle LineStyle { get; }
    Property Value
    Type Description
    ChartAxisLineStyle

    MajorGridLineStyle

    Gets the options for customizing the major gridlines.

    Declaration
    public ChartLineStyle MajorGridLineStyle { get; }
    Property Value
    Type Description
    ChartLineStyle

    MajorTickStyle

    Gets the options for customizing the major tick lines.

    Declaration
    public ChartAxisTickStyle MajorTickStyle { get; }
    Property Value
    Type Description
    ChartAxisTickStyle

    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
    Type Description
    System.Int32

    Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    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
    Type Description
    System.Boolean

    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
    Type Description
    System.Single

    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.

    Remarks

    PlotOffsetEnd applies padding at end of plot area where the axis and its elements are rendered in chart with padding at end. PlotOffsetEnd is not applicable for polar and radar chart series. If the values set to both PlotOffset and PlotOffsetEnd, then PlotOffset takes highest precedence.

    See Also
    PlotOffset
    PlotOffsetStart

    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.

    Remarks

    PlotOffsetStart applies padding at start of plot area where the axis and its elements are rendered in chart with padding at start. PlotOffsetStart is not applicable for polar and radar chart series. If the values set to both PlotOffset and PlotOffsetStart, then PlotOffset takes highest precedence.

    See Also
    PlotOffset
    PlotOffsetEnd

    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
    Type Description
    ChartPolarAngle

    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
    Type Description
    ChartAxisRangeStyleCollection

    This property takes the ChartAxisRangeStyleCollection as its 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
    Type Description
    System.Boolean

    ShowMajorGridLines

    Gets or sets a value indicating whether to show the major gridlines for the axis.

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

    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
    Type Description
    System.Boolean

    TickPosition

    Gets or sets the position of the axis tick lines.

    Declaration
    public AxisElementPosition TickPosition { get; set; }
    Property Value
    Type Description
    AxisElementPosition

    Title

    Gets the title for the axis.

    Declaration
    public AxisTitleStyle Title { get; }
    Property Value
    Type Description
    AxisTitleStyle

    TrackballLabelStyle

    Declaration
    public ChartTrackballAxisLabelStyle TrackballLabelStyle { get; }
    Property Value
    Type Description
    ChartTrackballAxisLabelStyle

    Visibility

    Gets or sets the value that indicates whether the axis is visible in the chart.

    Declaration
    public Visibility Visibility { get; set; }
    Property Value
    Type Description
    Visibility

    VisibleLabels

    Gets the visible labels.

    Declaration
    public ObservableCollection<ChartAxis.ChartAxisLabel> VisibleLabels { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<ChartAxis.ChartAxisLabel>

    VisibleRange

    Gets the visible range.

    Declaration
    public DoubleRange VisibleRange { get; }
    Property Value
    Type Description
    DoubleRange

    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
    Type Description
    System.Double

    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
    Type Description
    System.Double

    Methods

    ApplyRangePadding(DoubleRange, Double)

    Declaration
    protected virtual DoubleRange ApplyRangePadding(DoubleRange range, double interval)
    Parameters
    Type Name Description
    DoubleRange range
    System.Double interval
    Returns
    Type Description
    DoubleRange

    CalculateActualInterval(DoubleRange, SizeF)

    Declaration
    protected virtual double CalculateActualInterval(DoubleRange range, SizeF availableSize)
    Parameters
    Type Name Description
    DoubleRange range
    System.Drawing.SizeF availableSize
    Returns
    Type Description
    System.Double

    CalculateActualRange()

    Declaration
    protected virtual DoubleRange CalculateActualRange()
    Returns
    Type Description
    DoubleRange

    CalculateNiceInterval(DoubleRange, SizeF)

    Declaration
    protected virtual double CalculateNiceInterval(DoubleRange actualRange, SizeF availableSize)
    Parameters
    Type Name Description
    DoubleRange actualRange
    System.Drawing.SizeF availableSize
    Returns
    Type Description
    System.Double

    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
    Type Description
    System.Double

    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
    Type Description
    System.Double

    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
    Type Description
    System.Single

    ValueToPoint(Double)

    Declaration
    public float ValueToPoint(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    System.Single

    ValueToPolarCoefficient(Double)

    Declaration
    public virtual float ValueToPolarCoefficient(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    System.Single

    Events

    ActualRangeChanged

    Declaration
    public event EventHandler<ChartAxis.ActualRangeChangedEventArgs> ActualRangeChanged
    Event Type
    Type Description
    System.EventHandler<ChartAxis.ActualRangeChangedEventArgs>

    LabelClicked

    Event is raised, when the axis label is clicked.

    Declaration
    public event EventHandler<ChartAxis.ChartAxisLabelClickedEventArgs> LabelClicked
    Event Type
    Type Description
    System.EventHandler<ChartAxis.ChartAxisLabelClickedEventArgs>

    LabelCreated

    Event is raised, when the axis label is created.

    Declaration
    public event EventHandler<ChartAxis.LabelCreatedEventArgs> LabelCreated
    Event Type
    Type Description
    System.EventHandler<ChartAxis.LabelCreatedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved