Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-12-15 13:53:34 +01:00
parent c7ac802f47
commit ed6e4ff8fc

View File

@@ -697,12 +697,16 @@ def interactive_activitychart(workouts,startdate,enddate,stack='type',toolbar_lo
bars=table.to.bars(['date',stack],[yaxis])
bars.opts(
opts.Bars(cmap=mytypes.color_map, show_legend=True, stacked=True,
tools=['tap','hover'], width=550, xrotation=45,padding=(0,(0,.1)),
legend_position='bottom',show_frame=True))
if stack == 'type':
bars.opts(
opts.Bars(cmap=mytypes.color_map, show_legend=True, stacked=True,
tools=['tap','hover'], width=550, xrotation=45,padding=(0,(0,.1)),
legend_position='bottom',show_frame=True))
else:
bars.opts(
opts.Bars(cmap='Category10', show_legend=True, stacked=True,
tools=['tap','hover'], width=550, xrotation=45,padding=(0,(0,.1)),
legend_position='bottom',show_frame=True))
p = hv.render(bars)
@@ -876,10 +880,12 @@ def interactive_activitychart2(workouts,startdate,enddate,stack='type',toolbar_l
bars=table.to.bars(['date',stack],[yaxis])
bars.opts(
opts.Bars(cmap=mytypes.color_map, show_legend=True, stacked=True,
tools=['tap','hover'], width=550, xrotation=45,padding=(0,(0,.1)),
legend_position='bottom',show_frame=True))
tools=['tap','hover'], width=550, xrotation=45,padding=(0,(0,.1)),
legend_position='bottom',show_frame=True))