Skip to content

Commit

Permalink
Fix for bokeh BoxWhiskerPlot category factor handling (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jlstevens committed Sep 11, 2017
1 parent ddcb6b3 commit c061b2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions holoviews/plotting/bokeh/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ def _get_factors(self, element):
else:
factors = [tuple(d.pprint_value(v) for d, v in zip(element.kdims, key))
for key in element.groupby(element.kdims).data.keys()]
factors = [f[0] if len(f) == 1 else f for f in factors]
if self.invert_axes:
return [], factors
else:
Expand Down Expand Up @@ -1008,6 +1009,8 @@ def get_data(self, element, ranges=None, empty=False):
for d, v in zip(element.kdims, key)])
else:
label = tuple(d.pprint_value(v) for d, v in zip(element.kdims, key))
if len(label) == 1:
label = label[0]
else:
label = key

Expand Down

0 comments on commit c061b2b

Please sign in to comment.