AxisLogarithmicOptions Class

Stores settings that configure the logarithmic scale for a numeric axis.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public class AxisLogarithmicOptions :
    ChartElement

Related API Members

The following members accept/return AxisLogarithmicOptions objects:

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).

Examples

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

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

    <dxc:ChartView.AxisY>
        <dxc:NumericAxisY>
            <dxc:NumericAxisY.LogarithmicOptions>
                <dxc:AxisLogarithmicOptions Enabled="True" Base="10"/>
            </dxc:NumericAxisY.LogarithmicOptions>
        </dxc:NumericAxisY>
    </dxc:ChartView.AxisY>
</dxc:ChartView>

Inheritance

Object
Xamarin.Forms.BindableObject
ChartElement
AxisLogarithmicOptions
See Also