testing
This commit is contained in:
@@ -365,6 +365,17 @@ def interactive_workouttype_piechart(workouts):
|
|||||||
except KeyError: # pragma: no cover
|
except KeyError: # pragma: no cover
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
data_dict = data.to_dict("records")
|
||||||
|
|
||||||
|
chart_data = {
|
||||||
|
"data": data_dict,
|
||||||
|
"title": "Types"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div, script = get_chart("/workouttypepie", chart_data, debug=True)
|
||||||
|
return script, div
|
||||||
|
|
||||||
p = figure(height=350, title="Types", toolbar_location=None,
|
p = figure(height=350, title="Types", toolbar_location=None,
|
||||||
tools="hover,save", tooltips="@type: @totaltime", x_range=(-0.5, 1.0))
|
tools="hover,save", tooltips="@type: @totaltime", x_range=(-0.5, 1.0))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user