From b694b08fcf912f5d860e61e38db667c1e96430a0 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 5 May 2020 18:08:57 +0200 Subject: [PATCH] better layout --- rowers/interactiveplots.py | 5 +++-- rowers/templates/history.html | 7 ++++--- rowers/templates/menu_analytics.html | 5 +++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 829b7777..7fe3049e 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -223,7 +223,7 @@ def interactive_hr_piechart(df,rower,title): colors = ['gray','yellow','lime','blue','purple','red'] - size=220 + size=350 TOOLS = 'save' z = figure(title="HR "+title, x_range=(-1,1), y_range=(-1,1), width=size, height=size, @@ -236,7 +236,8 @@ def interactive_hr_piechart(df,rower,title): z.toolbar_location = 'right' - z.legend.visible = False + z.legend.location = 'top_right' + #z.legend.visible = False z.axis.visible = False z.xgrid.grid_line_color = None z.ygrid.grid_line_color = None diff --git a/rowers/templates/history.html b/rowers/templates/history.html index b315eb9f..89132f1e 100644 --- a/rowers/templates/history.html +++ b/rowers/templates/history.html @@ -8,7 +8,8 @@

History

    -
  • +
  • +

    {% csrf_token %} @@ -16,8 +17,7 @@
    -
  • -
  • +

    All workouts

    @@ -51,6 +51,7 @@

  • {{ totalscript|safe }}{{ totaldiv|safe }}
  • + {% for ddict in typedicts %}
  • {{ ddict|lookup:"wtype"}}

    diff --git a/rowers/templates/menu_analytics.html b/rowers/templates/menu_analytics.html index 9e9c32e3..df8a23c6 100644 --- a/rowers/templates/menu_analytics.html +++ b/rowers/templates/menu_analytics.html @@ -90,6 +90,11 @@  Alerts
  • +
  • + +  History + +