Subscription object is returned by Chart Methods. This object allows you to subscribe and unsubscribe to a chart event. It has two methods:
object
is a context to be used asthis
pointer for themethod
function. Usenull
if you don't need the context.method
is a function to be called when the event happens.singleshot
is an optional argument. Set it totrue
if you wish to be unsubscribed automatically when the event happens for the first time.
Use the same object
and method
that you used in the subscribe
function to unsubscribe from the event.
Use the same object
that you used in subscribe
function to unsubscribe object
from all events.