Added todo
Removed clear svg elements. Instead use d3 exit()
Fixed data attribute set for existing data.