Skip to content

unsubscribeAction(type, cb?) ​

unsubscribeAction Unsubscribe from chart actions.

Reference ​

typescript
(
  type: 'onZoom' |
    'onScroll' |
    'onVisibleRangeChange' |
    'onTooltipIconClick' |
    'onCrosshairChange' |
    'onCandleBarClick' |
    'onPaneDrag',
  cb: (data: unknown) => void
) => void

Parameters ​

  • type Type, supports onZoom, onScroll, onVisibleRangeChange, onTooltipIconClick, onCrosshairChange, onCandleBarClick and onPaneDrag .
  • cb The callback method when subscribing. By default, all subscriptions of the current type are canceled.

Returns ​

unsubscribeAction returns undefined .

Usage ​

Basic usage ​