add clear to reset data and display

Adds new methods `clear` and `_clearData` that reset the data and the diagram. 

Use-case is to update the diagram when editing a route and to reset to initial state when the route is deleted.

There might be better ways to implement this, I'm not very familiar with d3.