Skip to main content

ChartZoomAndPanBuilder.ValueAxis(ChartZoomAndPanMode) Method

Specifies whether users are allowed to zoom and/or pan the value axis. Mirrors the client-side valueAxis option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ChartZoomAndPanBuilder ValueAxis(
    ChartZoomAndPanMode value
)

Parameters

Name Type Description
value ChartZoomAndPanMode

The option value.

Returns

Type Description
ChartZoomAndPanBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().Chart()
    .ZoomAndPan(pan => pan
        .ValueAxis(ChartZoomAndPanMode.Both)
    )
)
See Also