g6/packages/site/docs/api/graphFunc/destroy.en.md
2023-02-02 10:31:36 +08:00

313 B

title order
Clear/Destroy Canvas 18

graph.clear()

Clear all the items in the canvas. This function is used for reseting the data source and re-rendering the graph.

Usage

graph.clear();

graph.destroy()

Destroy the graph.

Usage

graph.destroy();