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