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