Class LogarithmicAxis
Class implementation for LogarithmicAxis
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class LogarithmicAxis : RangeAxisBase, ICloneable, IRangeAxis
Constructors
LogarithmicAxis()
Called when instance created for LogarithmicAxis
Declaration
public LogarithmicAxis()
Fields
IntervalProperty
The DependencyProperty for Interval property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LogarithmicBaseProperty
The DependencyProperty for LogarithmicBase property.
Declaration
public static readonly DependencyProperty LogarithmicBaseProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MaximumProperty
The DependencyProperty for Maximum property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MinimumProperty
The DependencyProperty for Minimum property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Interval
Gets or sets a value that determines the interval between labels. Its nullable. If this property is not set, interval will be calculated automatically.
Declaration
public double? Interval { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Double> |
LogarithmicBase
Gets or sets the base for the LogarithmicAxis.
Declaration
public double LogarithmicBase { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
|
Maximum
Gets or sets the maximum value for the axis range. This is nullable property.
Declaration
public double? Maximum { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Double> |
Remarks
If we didn't set the maximum value, it will be calculate from the underlying collection.
Minimum
Gets or sets the minimum value for the axis range. This is nullable property.
Declaration
public double? Minimum { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Double> |
Remarks
If we didn't set the minimum value, it will be calculate from the underlying collection.
Methods
AddSmallTicksPoint(Double, Double)
Method implementation for Add SmallTicks for axis
Declaration
protected override void AddSmallTicksPoint(double position, double logarithmicBase)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position | |
| System.Double | logarithmicBase |
Overrides
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected override DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Double | interval |
Returns
| Type |
|---|
| DoubleRange |
Overrides
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
Overrides
CalculateActualRange()
Calculates actual range
Declaration
protected override DoubleRange CalculateActualRange()
Returns
| Type |
|---|
| DoubleRange |
Overrides
CalculateNiceInterval(DoubleRange, Size)
Calculates nice interval
Declaration
protected override double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | actualRange | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
Overrides
CalculateVisibleRange(Size)
Calculates the visible range.
Declaration
protected override void CalculateVisibleRange(Size avalableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | avalableSize |
Overrides
CloneAxis(DependencyObject)
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj |
Returns
| Type |
|---|
| System.Windows.DependencyObject |
Overrides
CoefficientToValue(Double)
Converts co-ordinate of point related to chart control to axis units.
Declaration
public override double CoefficientToValue(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | The absolute point value. |
Returns
| Type | Description |
|---|---|
| System.Double | The value of point on axis. |
Overrides
GenerateVisibleLabels()
Method implementation for Generate Labels in ChartAxis
Declaration
protected override void GenerateVisibleLabels()
Overrides
GetLabelContent(Double)
Return the object Value from the given double value
Declaration
public override object GetLabelContent(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position |
Returns
| Type |
|---|
| System.Object |
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when Interval changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e |
OnMaximumChanged(DependencyPropertyChangedEventArgs)
Called when maximum changed
Declaration
protected virtual void OnMaximumChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args |
OnMinimumChanged(DependencyPropertyChangedEventArgs)
Called when minimum property changed
Declaration
protected virtual void OnMinimumChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args |