AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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:

NameTypeDefaultDescription
valueboolean
true
Whether will use mouse wheel.

Returns:

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

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:

NameTypeDefaultDescription
valueboolean
true
Whether will use mouse wheel.

Returns:

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