Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Reduce the size of the weight log chart and center it

Roland Geider00ad9ef18709
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.js
index 74b109e9d..01d031013 100644
--- a/manager/static/js/workout-manager.js
+++ b/manager/static/js/workout-manager.js
@@ -545,7 +545,7 @@ function weight_chart(data)
function weight_log_chart(data, div_id, reps_i18n)
{
var margin = {top: 20, right: 80, bottom: 30, left: 50},
- width = 700 - margin.left - margin.right,
+ width = 600 - margin.left - margin.right,
height = 200 - margin.top - margin.bottom;
var parseDate = d3.time.format("%Y-%m-%d").parse;
diff --git a/manager/templates/tags/render_weight_log.html b/manager/templates/tags/render_weight_log.html
index ac07caf29..990633c56 100644
--- a/manager/templates/tags/render_weight_log.html
+++ b/manager/templates/tags/render_weight_log.html
@@ -36,4 +36,4 @@
</table>
</div>
-<div id="svg-{{div_uuid}}"></div>
+<div id="svg-{{div_uuid}}" style="text-align:center;"></div>