Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AutoScaleBreaks.Enabled Property

Gets or sets a value indicating whether to enable automatic scale breaks.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public bool Enabled { get; set; }

#Property Value

Type Description
Boolean

true, if automatic scale breaks are enabled; otherwise, false.

#Remarks

When scale breaks are enabled, you can use the AutoScaleBreaks.MaxCount property to define the maximum possible value of auto-generated scale breaks.

The Axis2D.ScaleBreaks property provides access to the manually added scale break collection.

#Example

This example shows how to automatically generate scale breaks for an axis.

To do this, set the AutoScaleBreaks.Enabled property to true. Limit the maximum possible number of auto-created scale breaks using the AutoScaleBreaks.MaxCount property.

<dxc:XYDiagram2D.AxisY>
    <dxc:AxisY2D>
        <dxc:AxisY2D.AutoScaleBreaks>
            <dxc:AutoScaleBreaks Enabled="True" 
                                 MaxCount="3"/>
        </dxc:AxisY2D.AutoScaleBreaks>
    </dxc:AxisY2D>
</dxc:XYDiagram2D.AxisY>
See Also