destroy()
If you need to manually dispose of a chart or quickly remove it and no longer use it, you can use this API.
TIP
All operations on the OrbCharts chart object are performed on the DOM element input when the chart class is first used, including creating SVG drawing elements, binding events, etc. It does not use or rely on external resources. Therefore, when the original input DOM is removed, all resources on the elements are automatically disposed of. In general, it is not necessary to manually dispose of resources to avoid memory leaks.
Syntax
chart.destroy()