trend flex v1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user