From 9d69fa15ea91609de294fa79149e56e11ebd3d37 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 11 Oct 2018 20:35:38 +0200 Subject: [PATCH] flex chart --- rowers/interactiveplots.py | 6 +++++- rowers/templates/flexchart3otw.html | 2 +- rowers/templates/multiflex.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index e74bd2b6..c06a7415 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -629,6 +629,8 @@ def interactive_forcecurve(theworkouts,workstrokesonly=False): ), plot]) + layout.sizing_mode = 'scale_width' + script, div = components(layout) js_resources = INLINE.render_js() css_resources = INLINE.render_css() @@ -3342,7 +3344,9 @@ def interactive_flex_chart2(id=0,promember=0, slider_work_max, ], ), - plot]) + plot]) + + layout.sizing_mode = 'scale_width' script, div = components(layout) js_resources = INLINE.render_js() diff --git a/rowers/templates/flexchart3otw.html b/rowers/templates/flexchart3otw.html index be59e81f..6dc19c95 100644 --- a/rowers/templates/flexchart3otw.html +++ b/rowers/templates/flexchart3otw.html @@ -24,7 +24,7 @@