From c061b2b610564c9322175a188c8ff2536b874ed9 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Mon, 11 Sep 2017 16:08:08 +0100 Subject: [PATCH] Fix for bokeh BoxWhiskerPlot category factor handling (#1865) --- holoviews/plotting/bokeh/chart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py index d21f4b1359..d85129d47c 100644 --- a/holoviews/plotting/bokeh/chart.py +++ b/holoviews/plotting/bokeh/chart.py @@ -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: @@ -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