Skip to main content
A newer version of this page is available. .

ScaleBreak Class

The individual scale break within the collection.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public class ScaleBreak :
    ChartElement,
    IScaleBreak,
    IScaleDiapason

Remarks

The ScaleBreak class defines the settings of scale breaks that are manually created. These ScaleBreak objects are contained within the ScaleBreakCollection, and are available using the Axis2D.ScaleBreaks property.

Specify the ScaleBreak.Edge1 and ScaleBreak.Edge2 properties to set a range that is to be replaced by a scale break.

ScaleBreaks_Edges

Use the AutoScaleBreaks class to enable automatic scale breaks.

Customize the scale break appearance using the ScaleBreakOptions class. Note that these options affect both manual and automatic scale break appearance.

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.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScaleBreak class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also