Back to Devexpress

AxisLogarithmicOptions.Base Property

maui-devexpress-dot-maui-dot-charts-dot-axislogarithmicoptions.md

latest2.7 KB
Original Source

AxisLogarithmicOptions.Base Property

Gets or sets the base of the logarithm. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public double Base { get; set; }

Property Value

TypeDefaultDescription
Double10

The base of the logarithm.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Base
NumericAxisX

.LogarithmicOptions .Base

| | NumericAxisY |

.LogarithmicOptions .Base

|

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:

A logarithmic scale is enabled for the x-axis.

A logarithmic scale is disabled.

xaml
<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

AxisLogarithmicOptions Class

AxisLogarithmicOptions Members

DevExpress.Maui.Charts Namespace