unsubscribeAction(type, cb?)
unsubscribeAction
Unsubscribe from chart actions.
Reference
typescript
(
type: 'onZoom' |
'onScroll' |
'onVisibleRangeChange' |
'onCandleTooltipFeatureClick' |
'onCrosshairChange' |
'onCandleBarClick' |
'onPaneDrag',
cb: (data: unknown) => void
) => void
Parameters
type
Type, supportsonZoom
,onScroll
,onVisibleRangeChange
,onCandleTooltipFeatureClick
,onCrosshairChange
,onCandleBarClick
andonPaneDrag
.cb
The callback method when subscribing. By default, all subscriptions of the current type are canceled.
Returns
unsubscribeAction
returns undefined
.