Skip to content

Commit

Permalink
SideHistogram supports coloring weighted average
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 28, 2017
1 parent aeb487b commit b427cdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/bokeh/chart.py
Expand Up @@ -300,7 +300,8 @@ def get_data(self, element, ranges=None, empty=None):
data = dict(top=element.values, left=element.edges[:-1],
right=element.edges[1:])

dim = element.get_dimension(0)
color_dims = self.adjoined.traverse(lambda x: x.handles.get('color_dim'))
dim = color_dims[0] if color_dims else None
cmapper = self._get_colormapper(dim, element, {}, {})
if cmapper:
data[dim.name] = [] if empty else element.dimension_values(dim)
Expand Down

0 comments on commit b427cdc

Please sign in to comment.