From fb6fde0f88df21fe4a4c4c48d5e0350a7fc10b6c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 14 Mar 2024 21:05:20 +0100 Subject: [PATCH] work in progress for cum_flex --- rowers/interactiveplots.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 57c1491b..99ca8996 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -4066,6 +4066,34 @@ def interactive_cum_flex_chart2(theworkouts, promember=0, ytrend = func(x1, popt[0], popt[1]) datadf['ytrend'] = ytrend + chart_data = { + 'title': 'Some Chart', + 'data': [ + { + 'ftime': '03:00.0', + 'workout': 'a', + 'spm': 24, + 'distance':1000 + }, + { + 'ftime': '03:00.0', + 'workout': 'a', + 'spm': 24, + 'distance':1000 + }, + { + 'ftime': '03:00.0', + 'workout': 'a', + 'spm': 24, + 'distance':1000 + }, + ] + } + + script, div = get_chart("/dots", chart_data) + + return script, div + source = ColumnDataSource( datadf )