Skip to main content

AxisLogarithmicOptions.Base Property

Gets or sets the base of the logarithm.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

#Declaration

C#
public double Base { get; set; }

#Property Value

Type Description
Double

The base of the logarithm.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Base
NumericAxisX
NumericAxisY

#Remarks

To enable and configure the logarithmic scale for a numeric axis, set the NumericAxisX.LogarithmicOptions or NumericAxisY.LogarithmicOptions property to an AxisLogarithmicOptions object with the specified settings:

  1. Set the Enabled property to true.
  2. Use the Base property to define the base of the logarithm (the default value is 10).

#Example

This example shows how to enable the logarithmic view for a numeric x-axis:

<dxc:ChartView>
    <dxc:ChartView.Series>
        <dxc:PointSeries>
            <!--...-->
        </dxc:PointSeries>
    </dxc:ChartView.Series>

    <dxc:ChartView.AxisX>
        <dxc:NumericAxisX>
            <dxc:NumericAxisX.LogarithmicOptions>
                <dxc:AxisLogarithmicOptions Enabled="True" Base="10"/>
            </dxc:NumericAxisX.LogarithmicOptions>
        </dxc:NumericAxisX>
    </dxc:ChartView.AxisX>
</dxc:ChartView>
See Also