graph-viz-d3-js icon indicating copy to clipboard operation
graph-viz-d3-js copied to clipboard

How to clean the past graph rendered?

Open dpineiden opened this issue 7 years ago • 1 comments

Hello

The library is very good, it works fine. But i can't find now how to clean the canvas to render a new graph. Right now the new graph is added to the right.

That's all

Best regards°!

dpineiden avatar May 16 '17 18:05 dpineiden

On my page http://graphviz.it website graph is cleared by setting string digraph G {\n\t\n} as a diagram source. Maybe it will be more convenient to add clear() method.

mstefaniuk avatar May 22 '17 22:05 mstefaniuk