Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't start y-axes for weight chart with 0

Roland Geider68952dc03da6
diff --git a/wger/weight/static/js/weight.js b/wger/weight/static/js/weight.js
index 254a506ed..86d43afa6 100644
--- a/wger/weight/static/js/weight.js
+++ b/wger/weight/static/js/weight.js
@@ -27,7 +27,8 @@ $(document).ready(function () {
xax_count: 10,
target: '#weight_diagram',
x_accessor: 'date',
- y_accessor: 'weight'
+ y_accessor: 'weight',
+ min_y_from_data: true
}