Private
Public Access
1
0

workouttype pie chart v1

This commit is contained in:
2024-03-27 18:58:40 +01:00
parent 06825e947a
commit 672cfab0c4
2 changed files with 6 additions and 18 deletions

View File

@@ -373,23 +373,10 @@ def interactive_workouttype_piechart(workouts):
}
div, script = get_chart("/workouttypepie", chart_data, debug=True)
script, div = get_chart("/workouttypepie", chart_data, debug=True)
return script, div
p = figure(height=350, title="Types", toolbar_location=None,
tools="hover,save", tooltips="@type: @totaltime", x_range=(-0.5, 1.0))
p.wedge(x=0, y=1, radius=0.4,
start_angle=cumsum('angle', include_zero=True), end_angle=cumsum('angle'),
line_color="white", fill_color='color', source=data, legend_group='type', )
p.axis.axis_label = None
p.axis.visible = False
p.grid.grid_line_color = None
p.outline_line_color = None
p.toolbar_location = 'right'
return components(p)
def interactive_boxchart(datadf, fieldname, extratitle='',