this is a very general question, but 'undo' in the meaning of a special option is not available from the api.

however, there are many options which can be used for removing old and adding new data. in your example, you can use the remove() and addseries() methods to achieve that.


api references:

you can also consider using localstorage as a place for storing chart.options.

example demo:

Related Query