Apply hover postprocessor on updates
@@ -1306,14 +1306,14 @@ class ElementPlot(BokehPlot, GenericElementPlot):
if not isinstance(hover.tooltips, str) and 'hv_created' in hover.tags:
for k, values in source.data.items():
key = '@{%s}' % k
- if key in hover.formatters:
- continue
if ((isinstance(value, np.ndarray) and value.dtype.kind == 'M') or
(len(values) and isinstance(values[0], util.datetime_types))):
hover.tooltips = [(l, f+'{%F %T}' if f == key else f) for l, f in hover.tooltips]
hover.formatters[key] = "datetime"
+
if hover.renderers == 'auto':
hover.renderers = []
+ if renderer not in hover.renderers:
hover.renderers.append(renderer)
def _init_glyphs(self, plot, element, ranges, source):
@@ -1511,6 +1511,9 @@ class ElementPlot(BokehPlot, GenericElementPlot):
if 'hover' in self.handles:
self._update_hover(element)
+ if 'cds' in self.handles:
+ cds = self.handles['cds']
+ self._postprocess_hover(renderer, cds)
self._update_glyphs(element, ranges, self.style[self.cyclic_index])
self._execute_hooks(element)
