Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-05-31 17:32:55 +02:00
parent 08b831f413
commit 09a0cd896e
2 changed files with 33 additions and 3 deletions

View File

@@ -824,7 +824,7 @@ def interactive_activitychart2(workouts,startdate,enddate,stack='type',toolbar_l
types_order = mytypes.workouttypes_ordered
#bars=table.to.bars(['date',stack],[yaxis])
bars = hv.Bars(df, kdims=['date',stack]).aggregate(function=np.sum)
bars = hv.Bars(df, kdims=['date',stack]).aggregate(function=np.sum).redim.values(types=types_order)
#print(mytypes.color_map)
@@ -834,8 +834,6 @@ def interactive_activitychart2(workouts,startdate,enddate,stack='type',toolbar_l
legend_position='bottom',show_frame=True))
p = hv.render(bars)
p.title.text = 'Activity {d1} to {d2}'.format(