ZoomCharts Documentation

TimeChart.settings.interaction.zooming

This section is defined by the type TimeChartSettingsInteractionZooming.

Configurable settings to enhance and alleviate zoom interaction.

Properties

alwaysNextUnit: boolean
Default value: false

If true, clicking to zoom will always pick the next smallest display unit

click: boolean
Default value: true
Introduced in version 1.15.0.

Whether to zoom-in when the chart area is clicked/tapped.

Note that to maintain backwards compatibility, if the zooming is completely disabled by setting enabled: false, the click interaction will still be available and must be disabled separately.

enabled: boolean
Default value: true

If set to false, all zoom gestures will be disabled, irrespective of how the other properties are configured. Note that the user will still be able to zoom by drill-down (clicking on values; to disable that, specify click: false) and by using toolbar.

fingers: boolean
Default value: true

Whether to zoom by two finger pinch.

fingersMaxZoom: number
Default value: 10

Max zoom difference when using pinch gesture.

matchDisplayUnit: boolean
Default value: false

If true, zooming out will try to align with the next larger display unit.

sensitivity: number
Default value: 2
Version 1.13.0: default value changed from 1 to 2.

Zooming sensitivity for swipe gestures. Bigger values correspond to faster zooming.

swipe: boolean
Default value: true

Whether to zoom by swiping up or down.

upDownTreshold: number
Default value: 10

How far pointer must be moved up or down in pixels before zooming activates.

wheel: boolean
Default value: false

Whether to zoom by mouse wheel.

wheelSensitivity: number
Default value: 1.5
Introduced in version 1.14.0.

Zooming sensitivity for mouse wheel. Bigger values correspond to faster zooming. Must be >= 1.1

zoomHighlightThreshold: number
Default value: 1.5

Zoomed area is highlighted if zoom is changed more number of times than this.

zoomOnMinUnit: boolean
Default value: true

If set to false, no zooming will occur on interaction if the chart is already at the minimum unit

X