Instead of adding interactive popup on mouse over of plot point, switch to mouse over of rectangle around the timestamp (reduces file size by another third 29.7kb => 17.9)

This commit is contained in:
Peter Stockings
2023-12-09 14:03:09 +11:00
parent bc79224cee
commit 9d5d3b4507
2 changed files with 17 additions and 1 deletions

3
db.py
View File

@@ -547,6 +547,8 @@ class DataBase():
'points': list(weight_points)
}
plot_labels = zip(relative_positions, messages)
# Return exercise data with SVG dimensions and data points
return {
'exercise_name': topsets[0]['exercise_name'],
@@ -554,4 +556,5 @@ class DataBase():
'vb_height': vb_height,
'plots': [estimated_1rm, repetitions, weight],
'best_fit_points': list(best_fit_points),
'plot_labels': plot_labels
}