Skip to content

Graph Instance

API Reference

Graph.destroy()

Destroy the current graph instance and release all resources related to it.

⚠️ Note: After destruction, no operations can be performed. If you need to use it again, you must create a new graph instance.

destroy(): void;

Usage Scenarios:

  • When the user closes the chart or switches to another view, this method can be called to release resources.
  • When needing to recreate a graph instance, ensure the old instance is destroyed first to avoid memory leaks.
© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose