Back to Devexpress

AxisLogarithmicOptions.Enabled Property

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

latest2.8 KB
Original Source

AxisLogarithmicOptions.Enabled Property

Gets or sets whether the axis uses the logarithmic scale to display numeric values. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public bool Enabled { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to display the logarithmic scale; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Enabled
NumericAxisX

.LogarithmicOptions .Enabled

| | NumericAxisY |

.LogarithmicOptions .Enabled

|

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 y-axis:

A logarithmic scale is enabled for the y-axis.

A logarithmic scale is disabled.

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

See Also

AxisLogarithmicOptions Class

AxisLogarithmicOptions Members

DevExpress.Maui.Charts Namespace