Class CategoryAxis
Represents a specialized axis to plot categorical data. This class contains properties to customize grid lines, ticks and labels.
Inherited Members
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 |
|
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
OnParentSet()
Declaration
protected override void OnParentSet()