Skip to content

Commit

Permalink
Merge pull request #58 from ioam/poly_fix
Browse files Browse the repository at this point in the history
Fix for Shape colormapping
  • Loading branch information
philippjfr authored Apr 7, 2017
2 parents c509416 + 16ad598 commit 3006c31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ def get_data(self, element, ranges=None, empty=False):
dim = element.vdims[0].name if element.vdims else None
if cmap and dim and element.level is not None:
cdim = element.vdims[0]
dim_name = util.dimension_sanitizer(cdim.name)
cmapper = self._get_colormapper(cdim, element, ranges, style)
data[cdim.name] = [] if empty else element.dimension_values(2)
mapping['fill_color'] = {'field': cdim.name,
data[dim_name] = [] if empty else [element.level for _ in range(len(xs))]
mapping['fill_color'] = {'field': dim_name,
'transform': cmapper}

if 'hover' in self.tools+self.default_tools:
Expand Down

0 comments on commit 3006c31

Please sign in to comment.