Clear svg when graph changes.