subscribeAction(type, cb)
subscribeAction subscribe to chart actions.
Reference
typescript
(
type: 'onZoom' |
'onScroll' |
'onVisibleRangeChange' |
'onCandleTooltipFeatureClick' |
'onIndicatorTooltipFeatureClick'|
'onCrosshairFeatureClick' |
'onCrosshairChange' |
'onCandleBarClick' |
'onPaneDrag',
cb: (data: unknown) => void
) => voidParameters
typeType, supportsonZoom,onScroll,onVisibleRangeChange,onCandleTooltipFeatureClick,onIndicatorTooltipFeatureClick,onCrosshairFeatureClick,onCrosshairChange,onCandleBarClickandonPaneDrag.cbCallback.
Returns
subscribeAction returns undefined .