Skip to main content

BootstrapChartZoomAndPanSettings.DragToZoom Property

Enables users to zoom the chart by selecting an area with the drag gesture. Applies only on devices that use a mouse.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[DefaultValue(false)]
public bool DragToZoom { get; set; }

Property Value

Type Default Description
Boolean false

true to allow users zooming the chart with the drag gesture; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to DragToZoom
BootstrapChart
.SettingsZoomAndPan .DragToZoom

Remarks

When this property is set to true, the mouse’s drag gesture is used for zooming instead of panning. To pan in this case, users should perform the drag gesture while pressing the BootstrapChartZoomAndPanSettings.PanKey.

See Also