Back to Devexpress

AutoScaleBreaks Class

wpf-devexpress-dot-xpf-dot-charts-6884cbb8.md

latest2.8 KB
Original Source

AutoScaleBreaks Class

The storage of the automatic scale break options.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class AutoScaleBreaks :
    ChartDependencyObject
vb
Public Class AutoScaleBreaks
    Inherits ChartDependencyObject

The following members return AutoScaleBreaks objects:

Remarks

Set the AutoScaleBreaks.Enabled property to true to auto-create scale breaks.

Use the AutoScaleBreaks.MaxCount property to define the maximum possible number of automatic scale breaks to be generated.

The common scale break appearance settings are contained within the ScaleBreakOptions class. Note that these settings affect both automatic and manual scale break appearance.

The manually created scale breaks are represented by the ScaleBreak class and stored in the collection available with the Axis2D.ScaleBreaks property.

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.

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

Inheritance

Object DispatcherObject DependencyObject Freezable ChartDependencyObject AutoScaleBreaks

See Also

AutoScaleBreaks Members

DevExpress.Xpf.Charts Namespace