From f017df7d0423da53bf48c0b088770e53cad3c8e0 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 5 Nov 2020 22:28:12 +0100 Subject: [PATCH] menu entry for chart stack --- rowers/interactiveplots.py | 12 +++++++----- rowers/templates/menu_workout.html | 5 +++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 45061f80..d88c71f1 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -4627,12 +4627,14 @@ def interactive_flexchart_stacked(id,r,xparam='time', plot4.xaxis.axis_label = xaxlabel + + xrange1 = Range1d(start=xaxmin,end=xaxmax) + plot1.x_range = xrange1 + plot2.x_range = xrange1 + plot3.x_range = xrange1 + plot4.x_range = xrange1 + if xparam == 'time': - xrange1 = Range1d(start=xaxmin,end=xaxmax) - plot1.x_range = xrange1 - plot2.x_range = xrange1 - plot3.x_range = xrange1 - plot4.x_range = xrange1 plot4.xaxis[0].formatter = DatetimeTickFormatter( hours = ["%H"], minutes = ["%M"], diff --git a/rowers/templates/menu_workout.html b/rowers/templates/menu_workout.html index a1d3eab9..0de063d9 100644 --- a/rowers/templates/menu_workout.html +++ b/rowers/templates/menu_workout.html @@ -78,6 +78,11 @@  Flex Chart +
  • + +  Chart Stack + +
  • {% if workout|water %}