XYDiagram2D.SetAxisYZoomRatio(Double) Method

Changes the current zoom value for the Y-axis to the specified zoom ratio.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll


public void SetAxisYZoomRatio(
    double ratio
Public Sub SetAxisYZoomRatio(
    ratio As Double


Name Type Description
ratio Double

A Double value that specifies a new zoom ratio. It should be greater than 0 and less than or equal to 1.


Use the SetAxisYZoomRatio and XYDiagram2D.SetAxisXZoomRatio methods to change the current zoom value for X and Y axes of the XYDiagram2D.

Note that the ratio parameter, which should be passed to these methods, can be set to any double value from 0 (no zoom) to 1 (the maximum zoom value).

XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
See Also