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, supportsonZoom
,onScroll
,onVisibleRangeChange
,onTooltipIconClick
,onCrosshairChange
,onCandleBarClick
andonPaneDrag
.cb
Callback.
Returns â
executeAction
returns undefined
.