score:1

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.

demo: https://jsfiddle.net/blacklabel/tyvbk62s/

api references: https://api.highcharts.com/class-reference/highcharts.series#remove https://api.highcharts.com/class-reference/highcharts.chart#addseries

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

example demo: http://jsfiddle.net/blacklabel/9b3cx178/


Related Query