Class NumericalAxis
Represents a specialized axis to plot data with number values. 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 NumericalAxis : RangeAxisBase, IThemeElement
Examples
SfChart chart = new SfChart();
NumericalAxis primary = new NumericalAxis();
primary.Title = new ChartAxisTitle();
primary.Title.Text = "Sales Across Products";
primary.Minimum = 0;
primary.Maximum = 100;
primary.Interval = 10;
chart.PrimaryAxis = primary;
chart.SecondaryAxis = new NumericalAxis();
Constructors
NumericalAxis()
Initializes a new instance of the NumericalAxis class.
Declaration
public NumericalAxis()
Fields
IntervalProperty
Gets or sets the interval value that represents the number of division required in the NumericalAxis
. This is a bindable property.
Declaration
public static readonly BindableProperty IntervalProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MaximumProperty
Gets or sets the maximum value of visible range to be displayed on chart axis. This is a bindable property.
Declaration
public static readonly BindableProperty MaximumProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MinimumProperty
Gets or sets the minimum value of visible range to be displayed on chart axis. This is a bindable property.
Declaration
public static readonly BindableProperty MinimumProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
RangePaddingProperty
Gets or sets a padding type for the numerical axis range. This is a bindable property.
Declaration
public static readonly BindableProperty RangePaddingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StripLinesProperty
Gets or sets the collection of strip lines to be added to the chart axis. This is a bindable property.
Declaration
public static readonly BindableProperty StripLinesProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
Interval
Gets or sets the interval value that represents the number of division required in the NumericalAxis
. 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. |
Maximum
Gets or sets the maximum value of visible range to be displayed on chart axis. This is a bindable property.
Declaration
public Nullable<double> Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | This property takes double as its value. |
Minimum
Gets or sets the minimum value of visible range to be displayed on chart axis. This is a bindable property.
Declaration
public Nullable<double> Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | This property takes double as its value. |
RangePadding
Gets or sets a padding type for the numerical axis range. This is a bindable property.
Declaration
public NumericalPadding RangePadding { get; set; }
Property Value
Type | Description |
---|---|
NumericalPadding | This property takes the NumericalPadding as value. |
StripLines
Gets or sets the collection of strip lines to be added to the chart axis. This is a bindable property.
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()