RGraph reload the previous graph when i reload the page and i click the body of the page

我与影子孤独终老i 提交于 2019-12-05 06:09:51

You need to clear the ObjectRegistry, which keeps track of objects. You can do that with:

RGraph.ObjectRegistry.Clear();

Or you can clear objects related to a specific canvas tag with:

RGraph.ObjectRegistry.Clear(myCanvas);

Or you can remove a specific object with:

RGraph.ObjectRegistry.Remove(myObject);

You can read more about the ObjectRegistry on the API docs page:

https://www.rgraph.net/canvas/docs/api.html#objectregistry

You can also use RGraph.Clear(document.getElementById("The Id of your element"));

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!