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:
3
db.py
3
db.py
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user