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, supportsonZoom
,onScroll
,onVisibleRangeChange
,onTooltipIconClick
,onCrosshairChange
,onCandleBarClick
andonPaneDrag
.cb
The callback method when subscribing. By default, all subscriptions of the current type are canceled.
Returns â
unsubscribeAction
returns undefined
.