Subscription object is returned by [[Chart Methods|Chart-Methods#Chart-Methods]]. Using this object you can subscribe to a chart event and unsubscribe from it. So it has two methods:
object
is a context to be used asthis
pointer formethod
function. Usenull
if you don't need the context.method
is a function to be called when the event happenssingleshot
is an optional argument. Set it totrue
to be automatically unsubscribed when the event happens first time.
Use the same object
and method
which you used in subscribe
function to unsubscribe from the event.
Use the same object
which you used in subscribe
function to unsubscribe object
from all events.