Skip to content

Commit

Permalink
Merge pull request #837 from ioam/bokeh_bar_legend
Browse files Browse the repository at this point in the history
Allowed hiding legends on bokeh BarPlot
  • Loading branch information
jlstevens authored Aug 30, 2016
2 parents 8b2f1a9 + 3bb9344 commit 3e35360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/plotting/bokeh/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,4 +546,6 @@ def _init_chart(self, element, ranges):
crange = Range1d(*ranges.get(vdim))
plot = Bar(element.dframe(), values=vdim,
continuous_range=crange, **kwargs)
if not self.show_legend:
plot.legend[0].legends[:] = []
return plot

0 comments on commit 3e35360

Please sign in to comment.