Back to Devexpress

XYDiagram2D.DependentAxesYRange Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagram2d-85eaab7a.md

latest4.9 KB
Original Source

XYDiagram2D.DependentAxesYRange Property

Gets or sets whether the visual range of all Y-axes (axes of values) should be calculated only by values of points contained in the visual range of the X-axis (axis of arguments).

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public DefaultBoolean DependentAxesYRange { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property DependentAxesYRange As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

The value that defines whether the y-axis visual range should be calculated based on the x-axis visual range.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

The DependentAxesYRange property can have the following values:

|

Value

|

Description

| | --- | --- | |

Default

|

The default behavior of the value visual range.

| |

True

|

The visual range should be calculated by the values of points contained in the visual range of the axis of arguments.

| |

False

|

The visual range should be calculated by all values.

|

The following images demonstrates this property in action.

DependentAxesYRange = falseDependentAxesYRange = true

Note

The DependentAxesYRange and WholeRange.AlwaysShowZeroLevel properties are dependent. AlwaysShowZeroLevel is taken into account when the visual range is calculated.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DependentAxesYRange property.

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.

winforms-charts-create-real-time-chart/CS/RealTimeChartUpdates/Form1.cs#L33

csharp
diagram.AxisX.WholeRange.SideMarginsValue = 0;
diagram.DependentAxesYRange = DefaultBoolean.True;
diagram.AxisY.WholeRange.AlwaysShowZeroLevel = false;

winforms-charts-create-real-time-chart-and-collect-data-in-separate-thread/CS/RealTimeChartUpdates/Form1.cs#L42

csharp
diagram.AxisX.VisualRange.EndSideMargin = 200;
diagram.DependentAxesYRange = DefaultBoolean.True;
diagram.AxisY.WholeRange.AlwaysShowZeroLevel = false;

winforms-charts-create-real-time-chart/VB/RealTimeChartUpdates/Form1.vb#L37

vb
diagram.AxisX.WholeRange.SideMarginsValue = 0
diagram.DependentAxesYRange = DefaultBoolean.True
diagram.AxisY.WholeRange.AlwaysShowZeroLevel = False

winforms-charts-create-real-time-chart-and-collect-data-in-separate-thread/VB/RealTimeChartUpdates/Form1.vb#L52

vb
diagram.AxisX.VisualRange.EndSideMargin = 200
diagram.DependentAxesYRange = DefaultBoolean.True
diagram.AxisY.WholeRange.AlwaysShowZeroLevel = False

See Also

XYDiagram2D Class

XYDiagram2D Members

DevExpress.XtraCharts Namespace