Fidi / Web-Status

Web interface that displays json files as charts.
MIT License
0 stars 0 forks source link

Sync animations #2

Open Fidi opened 9 years ago

Fidi commented 9 years ago

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.

Fidi commented 9 years ago

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.