ScaleBreak.Edge1 Property

Gets or sets the first edge of a scale break.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public object Edge1 { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property Edge1 As Object

Property Value

Type Description
Object

A Object that specifies the scale break's first edge.

Remarks

Use the Edge1 and ScaleBreak.Edge2 properties to define two values along an axis, representing a range to be replaced by a scale break.

scaleBreak_edges

NOTE

These values should be defined in the measurement units appropriate for the axis scale type.

Note that a scale break is successfully created with no regard to whether its edge1 value is more or less than its edge2 value, and to the sequence in which these properties are defined.

For more information, refer to Scale Breaks.

Examples

This example demonstrates how scale breaks can be created within an axis, and customized at runtime.

// Cast your diagram object to an appropriate diagram type,
// to access its axes.
XYDiagram diagram = (XYDiagram)chartControl1.Diagram;

// Add scale breaks to the Y-axis collection, 
// with their Edge1 and Edge2 properties defined in the constructor.
diagram.AxisY.ScaleBreaks.Add(new ScaleBreak("Scale Break 1", 10, 100));
diagram.AxisY.ScaleBreaks.Add(new ScaleBreak("Scale Break 2", 110, 2000));

// Define the scale breaks' options.
diagram.AxisY.ScaleBreakOptions.Style = ScaleBreakStyle.Ragged;
diagram.AxisY.ScaleBreakOptions.SizeInPixels = 20;
diagram.AxisY.ScaleBreakOptions.Color = Color.Turquoise;
See Also