ZoomCharts Documentation

Version: 1.21.3 (2025-04-07)
Switch to Version 2.0 (BETA)

PieChart.settings.advanced.pointer

This section is defined by the type BaseSettingsAdvancedPointer.

Pointer related settings.

Properties

clickSensitivity: number
Default value: 10

Pixels pointer can move around and still be registered as a click.

doubleClickSensitivity: number
Default value: 20

Pixels pointer can move around and still be registered as double click.

doubleClickTimeout: number
Default value: 300

Maximum time in ms between clicks to register a double click. Also controls the maximum amount of time that can pass between a mouse down and mouse up and still qualify as a click.

Special values: null - Entirely disables double and triple click; all clicks count as single. undefined - Same as null. 0 - Entirely disables clicking in general; all mouse down and up events are registered as just mouse down and mouse up.

longPressSensitivity: number
Default value: 10

The distance in pixels the pointer is allowed to be moved before the long-press event is cancelled.

longPressTimeout: number
Default value: 500

Time in ms the pointer has to be hold to register a long press (an alternative to clicking the right mouse button).

mouseWheelRequiresFocus: boolean
Default value: false
Introduced in version 1.13.0.

Specifies if the mouse wheel is only captured when the chart has focus. Setting this to true will require that the user first clicks the chart area.

noClickOnDoubleClick: boolean
Default value: false

If enabled, normal click event is not sent when user performs a double click. A not so nice side effect is that any on click actions are delayed by the double click timeout. Set to false if you are not relying on double click events.

scrollIntoView: boolean
Default value: false
Version 1.12.0: added the setting, previously the default was true.

Specifies if the chart container is scrolled into view once the chart is clicked.

Note that the scroll happens on a click, if the pointer is used to for example, drag the chart, it will not scroll into view so that the user interaction works properly.

speedAveragingPeriod: number
Default value: 200

Time window to use for pointer speed estimation.

tripleClickTimeout: number
Default value: null

Maximum time in ms between double click and triple click to register a triple click. Special values: null -- Use the same length as doubleClickTimeout undefined -- Same as null.

X