svg animated, no more canvas, and finally defined a common structure for the data