Right now every animation finishes after a number of steps (number of datapoints in json source). However, this means that a json file with 20 datapoints will take twice as long as one with only 10 datapoints.
Using requestAnimationFrame the only way to sync the drawing process without time manipulation would be to consider every canvas width as 100%. Then every animation would last 100 frames.
There is a second problem: If for instance there are 3 datasequences that all have hundred entries it takes 300 frames to display this all which takes forever.
Right now every animation finishes after a number of steps (number of datapoints in json source). However, this means that a json file with 20 datapoints will take twice as long as one with only 10 datapoints.
Using requestAnimationFrame the only way to sync the drawing process without time manipulation would be to consider every canvas width as 100%. Then every animation would last 100 frames.