wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-4dbfab9a.md
Gets or sets the value indicating 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.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public bool? DependentAxesYRange { get; set; }
Public Property DependentAxesYRange As Boolean?
| Type | Description |
|---|---|
| Nullable<Boolean> |
The value that defines whether the y-axis visual range should be calculated based on the x-axis visual range.
|
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 demonstrate this property in action.
| DependentAxesYRange = false | DependentAxesYRange = true |
|---|---|
Note
The DependentAxesYRange and AxisY2D.AlwaysShowZeroLevel properties are dependent. AlwaysShowZeroLevel is taken into account when the visual range is calculated.
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.
wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml#L17
<dxc:XYDiagram2D x:Name="diagram"
DependentAxesYRange="True">
<dxc:SplineSeries2D DisplayName="Series 1"
See Also