Class LogarithmicAxis
Represents a specialized axis to plot data with number values in logarithmic scale. 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 LogarithmicAxis : RangeAxisBase, IThemeElement
Examples
SfChart chart = new SfChart();
LogarithmicAxis primary = new LogarithmicAxis();
primary.Title = new ChartAxisTitle();
primary.Title.Text = "Sales Across Products";
primary.MinorTicksPerInterval = 5;
primary.ShowMinorGridLines = true;
primary.Minimum = 100;
primary.Maximum = 10000 ;
chart.PrimaryAxis = primary;
chart.SecondaryAxis = new NumericalAxis();
Constructors
LogarithmicAxis()
Initializes a new instance of the LogarithmicAxis class.
Declaration
public LogarithmicAxis()
Fields
IntervalProperty
Gets or sets the interval value that represents the number of division required in the LogarithmicAxis
. This is a bindable property.
Declaration
public static readonly BindableProperty IntervalProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LogarithmicBaseProperty
Gets or sets the base value of the logarithmic axis. The default value is 10. This is a bindable property.
Declaration
public static readonly BindableProperty LogarithmicBaseProperty
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 |
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
Interval
Gets or sets the interval value that represents the number of division required in the LogarithmicAxis
. 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. |
LogarithmicBase
Gets or sets the base value of the logarithmic axis. The default value is 10. This is a bindable property.
Declaration
public Nullable<double> LogarithmicBase { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | This property takes double as its 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. |
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()