Private
Public Access
1
0

trend flex v1

This commit is contained in:
2024-03-20 21:55:06 +01:00
parent fdc9c076bd
commit edd5762010

View File

@@ -3761,6 +3761,24 @@ def interactive_multiflex(datadf, xparam, yparam, groupby, extratitle='',
yaxmax = yaxmaxima[yparam]
yaxmin = yaxminima[yparam]
data_dict = datadf.to_dict("records")
metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics]
chart_data = {
'title': title,
'x': xparam,
'y': yparam,
'data': data_dict,
'metrics': metrics_list,
'errorbars':ploterrorbars,
'groupname': groupname,
}
script, div = get_chart("/trendflex", chart_data)
return script, div
x_axis_type = 'linear'
y_axis_type = 'linear'
if xparam == 'time': # pragma: no cover