unsubscribeAction(type, cb?) 
unsubscribeAction Unsubscribe from chart actions.
Reference 
typescript
(
  type: 'onZoom' |
    'onScroll' |
    'onVisibleRangeChange' |
    'onCandleTooltipFeatureClick' |
    'onIndicatorTooltipFeatureClick'|
    'onCrosshairFeatureClick' |
    'onCrosshairChange' |
    'onCandleBarClick' |
    'onPaneDrag',
  cb: (data: unknown) => void
) => voidParameters 
- typeType, supports- onZoom,- onScroll,- onVisibleRangeChange,- onCandleTooltipFeatureClick,- onIndicatorTooltipFeatureClick,- onCrosshairFeatureClick,- onCrosshairChange,- onCandleBarClickand- onPaneDrag.
- cbThe callback method when subscribing. By default, all subscriptions of the current type are canceled.
Returns 
unsubscribeAction returns undefined .