menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class CategoryAxis

    Represents a specialized axis to plot categorical data. This class contains properties to customize grid lines, ticks and labels.

    Inheritance
    System.Object
    ChartAxis
    CategoryAxis
    Inherited Members
    ChartAxis.ActualRangeChanged
    ChartAxis.AutoScrollingDelta
    ChartAxis.AutoScrollingDeltaProperty
    ChartAxis.AutoScrollingMode
    ChartAxis.AutoScrollingModeProperty
    ChartAxis.AxisLineOffset
    ChartAxis.AxisLineOffsetProperty
    ChartAxis.AxisLineStyle
    ChartAxis.AxisLineStyleProperty
    ChartAxis.CoefficientToValue(Double)
    ChartAxis.CrossesAt
    ChartAxis.CrossesAtProperty
    ChartAxis.EdgeLabelsDrawingMode
    ChartAxis.EdgeLabelsDrawingModeProperty
    ChartAxis.EnableAutoIntervalOnZooming
    ChartAxis.EnableAutoIntervalOnZoomingProperty
    ChartAxis.IsInversed
    ChartAxis.IsInversedProperty
    ChartAxis.IsVertical
    ChartAxis.IsVisible
    ChartAxis.IsVisibleProperty
    ChartAxis.LabelClicked
    ChartAxis.LabelCreated
    ChartAxis.LabelExtent
    ChartAxis.LabelExtentProperty
    ChartAxis.LabelRotationAngle
    ChartAxis.LabelRotationAngleProperty
    ChartAxis.LabelsIntersectAction
    ChartAxis.LabelsIntersectActionProperty
    ChartAxis.LabelStyle
    ChartAxis.LabelStyleProperty
    ChartAxis.MajorGridLineStyle
    ChartAxis.MajorGridLineStyleProperty
    ChartAxis.MajorTickStyle
    ChartAxis.MajorTickStyleProperty
    ChartAxis.MaximumLabels
    ChartAxis.MaximumLabelsProperty
    ChartAxis.Name
    ChartAxis.NameProperty
    ChartAxis.OnCreateLabels()
    ChartAxis.OpposedPosition
    ChartAxis.OpposedPositionProperty
    ChartAxis.PlotOffset
    ChartAxis.PlotOffsetEnd
    ChartAxis.PlotOffsetEndProperty
    ChartAxis.PlotOffsetProperty
    ChartAxis.PlotOffsetStart
    ChartAxis.PlotOffsetStartProperty
    ChartAxis.PointToValue(Point)
    ChartAxis.PolarAngle
    ChartAxis.PolarAngleProperty
    ChartAxis.RangeStyles
    ChartAxis.RangeStylesProperty
    ChartAxis.RenderNextToCrossingValue
    ChartAxis.RenderNextToCrossingValueProperty
    ChartAxis.ShowMajorGridLines
    ChartAxis.ShowMajorGridLinesProperty
    ChartAxis.ShowTrackballInfo
    ChartAxis.ShowTrackballInfoProperty
    ChartAxis.TickPosition
    ChartAxis.TickPositionProperty
    ChartAxis.Title
    ChartAxis.TitleProperty
    ChartAxis.TrackballLabelStyle
    ChartAxis.TrackballLabelStyleProperty
    ChartAxis.TrackballLabelTemplate
    ChartAxis.TrackballLabelTemplateProperty
    ChartAxis.ValueToCoefficient(Double)
    ChartAxis.ValueToPoint(Double)
    ChartAxis.VisibleLabels
    ChartAxis.VisibleMaximum
    ChartAxis.VisibleMinimum
    ChartAxis.ZoomFactor
    ChartAxis.ZoomFactorProperty
    ChartAxis.ZoomPosition
    ChartAxis.ZoomPositionProperty
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class CategoryAxis : ChartAxis, IThemeElement
    Examples
    SfChart chart = new SfChart();
    CategoryAxis primary = new CategoryAxis();
    primary.Title = new ChartAxisTitle();
    primary.Title.Text = "Sales Across Products";
    primary.LabelPlacement = LabelPlacement.BetweenTicks;
    chart.PrimaryAxis = primary;
    chart.SecondaryAxis = new NumericalAxis();

    Constructors

    CategoryAxis()

    Initializes a new instance of the CategoryAxis class.

    Declaration
    public CategoryAxis()

    Fields

    ArrangeByIndexProperty

    Gets or sets a value indicating whether to group the Category axis label values and create the segment based on it.

    Declaration
    public static readonly BindableProperty ArrangeByIndexProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    IntervalProperty

    Gets or sets the interval value that represents the number of division required in the CategoryAxis. This is a bindable property.

    Declaration
    public static readonly BindableProperty IntervalProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelPlacementProperty

    Gets or sets an option that determines whether to place axis label, in between the tick lines or on the tick lines. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelPlacementProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    StripLinesProperty

    Gets or sets the collection of strip lines to be added to the chart axis.

    Declaration
    public static readonly BindableProperty StripLinesProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    ArrangeByIndex

    Gets or sets a value indicating whether to group the Category axis label values and create the segment based on it.

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

    True, to created the segment based on the index value. This is default value. False, to created the segment based on the axis label values.

    Interval

    Gets or sets the interval value that represents the number of division required in the CategoryAxis. This is a bindable property.

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

    This property takes the double value.

    LabelPlacement

    Gets or sets an option that determines whether to place axis label, in between the tick lines or on the tick lines. This is a bindable property.

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

    This property takes the LabelPlacement as its value.

    StripLines

    Gets or sets the collection of strip lines to be added to the chart axis.

    Declaration
    public NumericalStripLineCollection StripLines { get; set; }
    Property Value
    Type Description
    NumericalStripLineCollection

    Strip Lines Collection.

    Methods

    OnBindingContextChanged()

    Override this method to execute an action when the BindingContext changes.

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    ChartAxis.OnBindingContextChanged()

    OnParentSet()

    Declaration
    protected override void OnParentSet()
    Overrides
    ChartAxis.OnParentSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved