Top
You are looking at an outdated 7.14.3 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.utils.StockInteractivity Improve this Doc

Extends: anychart.core.utils.Interactivity

Class is settings for interactivity (like hover, select).

Methods Overview

Interactivity
scrollOnMouseWheel()Interactivity scrolling settings
zoomOnMouseWheel()Interactivity zoom settings

Methods Description

scrollOnMouseWheel

Getter for the scrolling.

Returns:

boolean - Whether will use mouse wheel.
See listing
var scrollOnMouseWheel = interactivity.scrollOnMouseWheel();
Setter for the scrolling.
Allows use mouse wheel for scrolling. Press "ctrl" or "shift" and scroll mouse wheel.

Params:

Name Type Default Description
value boolean
true
Whether will use mouse wheel.

Returns:

anychart.core.utils.StockInteractivity - Self instance for method chaining

Try it:

zoomOnMouseWheel

Getter for the zoom.

Returns:

boolean - Whether will use mouse wheel.
See listing
var zoomOnMouseWheel = interactivity.zoomOnMouseWheel();
Setter for the zoom.
Allows use mouse wheel for zooming. Press "ctrl" or "shift" and zoom mouse wheel.

Params:

Name Type Default Description
value boolean
true
Whether will use mouse wheel.

Returns:

anychart.core.utils.StockInteractivity - Self instance for method chaining.

Try it: