chart.destroy()

Removes the chart iFrame from the DOM tree, removes DOM event listeners and removes the chart from the seatsio.charts array.

Use this method instead of removing DOM elements underneath the container div directly. If not, you introduce a memory leak.

Calling destroy() twice results in an error. The same goes for calling render() after the chart has been destroyed.