Skip to content

Commit

Permalink
Fixed bug defining grouped bar categories
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 25, 2017
1 parent c170db4 commit f193a4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/bokeh/chart.py
Expand Up @@ -662,9 +662,10 @@ def _get_factors(self, element):
"""
xdim, ydim = element.dimensions()[:2]
gdim = element.get_dimension(self.group_index)
sdim = element.get_dimension(self.stack_index)
xvals = element.dimension_values(0, False)
xvals = [x if xvals.dtype.kind in 'SU' else xdim.pprint_value(x) for x in xvals]
if bokeh_version >= '0.12.7' and gdim:
if bokeh_version >= '0.12.7' and gdim and not sdim:
gvals = element.dimension_values(gdim, False)
gvals = [g if gvals.dtype.kind in 'SU' else gdim.pprint_value(g) for g in gvals]
coords = ([(x, g) for x in xvals for g in gvals], [])
Expand Down

0 comments on commit f193a4b

Please sign in to comment.