React ChartsTouch

AG Charts implements touch and multi-touch support, enabling interactivity across all devices.

Touch Options Copy Link

All interactivity is available via touch input.

For example:

Single Finger Touch Dragging Copy Link

By default, Single Finger Touch Drag events are handled like mouse drag events. To change the input handling behaviour of these events, use touch.dragAction.


Single Finger Drag
Single Finger Drag
Drag with a single finger to pan or hover a chart.

touch: {
    dragAction: 'drag' | 'hover' | 'none' ,
}

In this example:

  • dragAction: 'none' disables the chart's Single Finger input handling, scrolling the entire page.
  • dragAction: 'drag' emulates mouse dragging, panning the viewport if possible.
  • dragAction: 'hover' emulates mouse movements, updating the tooltip and highlighted node.

Two Finger Zoom-Pan Copy Link

By default, charts use two finger gestures to zoom and pan. To pass this gesture to the underlying page, set enableTwoFingerZoom: false.


Two Finger Zoom
Two Finger Zoom
Pinch with two fingers to zoom in and out.

zoom: {
    enableTwoFingerZoom: true | false ,
}

Long Tap Copy Link

Long Tapping the chart will open the Context Menu, if available.


Long Press
Long Press
Hold to open the Context Menu on a chart.

API Reference Copy Link