From 05c137898c67bb9871a789a9cf27ceca9b9665ba Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 15 Dec 2020 08:39:06 +0100 Subject: [PATCH] only flaw now is bar colors not equal to pie colors --- rowers/interactiveplots.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index bbd6b4dc..cf113ddb 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -351,6 +351,7 @@ def interactive_hr_piechart(df,rower,title,totalseconds=0): data = pd.Series(datadict).reset_index(name='value').rename(columns={'index':'zone'}) data['angle'] = data['value']/data['value'].sum() * 2*pi data['color'] = colors + data['zone'] = ['