Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make the animation duration independent of the number of data points
Roland Geider22d68fbcd912
diff --git a/wger/manager/static/js/workout-manager.js b/wger/manager/static/js/workout-manager.jsindex 0ea0194b0..dffe8fa15 100644--- a/wger/manager/static/js/workout-manager.js+++ b/wger/manager/static/js/workout-manager.js@@ -602,7 +602,7 @@ function weight_chart(data).attr("r", 0).transition() // Animate the data points, "opening" them one after another.duration(1000)- .delay(function(d, i) { return i * 100; })+ .delay(function(d, i) { return i / data.length * 1600; }).attr("r", function(d) { return 5; });