Modified layout and removed chart svg element before re-render