Self hosted FLOSS fitness/workout, nutrition and weight tracker
Animate the data points in the body weight chart, opening them in succession
Roland Geider6bc5cf48a871
diff --git a/wger/manager/static/js/workout-manager.js b/wger/manager/static/js/workout-manager.jsindex 7e70ae281..0ea0194b0 100644--- a/wger/manager/static/js/workout-manager.js+++ b/wger/manager/static/js/workout-manager.js@@ -599,7 +599,12 @@ function weight_chart(data).attr("id", function(d) { return d.id; }).attr("cx", line.x()).attr("cy", line.y())- .attr("r", 5);+ .attr("r", 0)+ .transition() // Animate the data points, "opening" them one after another+ .duration(1000)+ .delay(function(d, i) { return i * 100; })+ .attr("r", function(d) { return 5; });+context.append("path").attr("class", "area")