Back to Devexpress

Axis2D.ScaleBreaks Property

wpf-devexpress-dot-xpf-dot-charts-dot-axis2d-9f784ca6.md

latest2.1 KB
Original Source

Axis2D.ScaleBreaks Property

The collection of axis scale breaks.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public ScaleBreakCollection ScaleBreaks { get; }
vb
Public ReadOnly Property ScaleBreaks As ScaleBreakCollection

Property Value

TypeDescription
ScaleBreakCollection

The collection of scale breaks.

|

Remarks

The ScaleBreaks provides the access to the collection of manually added scale breaks.

Use the Axis2D.AutoScaleBreaks property to modify the auto-generated scale break parameters.

The scale break appearance options are available with the Axis2D.ScaleBreakOptions property.

Example

This example demonstrates how to manually create scale breaks for a y-axis.

To do this, add a ScaleBreak object to the Axis2D.ScaleBreaks collection. Then, specify the ScaleBreak.Edge1 and ScaleBreak.Edge2 property values to define a data range that should be replaced by a scale break. Note that the Edge1 and Edge2 values are specified in measurement units of the axis.

xaml
<dxc:AxisY2D.ScaleBreaks>
    <dxc:ScaleBreak Edge1="21000" 
                    Edge2="37000"/>
    <dxc:ScaleBreak Edge1="45000" 
                    Edge2="85000" />
</dxc:AxisY2D.ScaleBreaks>

See Also

Axis2D Class

Axis2D Members

DevExpress.Xpf.Charts Namespace