clean up
remove legend only if legend exists
create legend only if legend does not exist
add `.destroy()` method

undraw + delete the .graph data from the element