Skip to content

subscribeAction(type, cb) ​

subscribeAction subscribe to 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 Callback.

Returns ​

executeAction returns undefined .

Usage ​

Basic usage ​