Hey,
While activating hover tool using hv.RGB(rgb_image_np_array).opts(tools=['hover'])
,
I would to like present the R G and B values instead - Is there a way to make it happen?
Thanks.
without some code I can only guess, but you can do something like this:
from bokeh.models import HoverTool
# Syntax: $. are 'special fields': $x inserts the x-coordinate
# @. are fields from the color data source:
# provide an extra column of values and declare it's name as a vdim (or sue a pd.DataFrame)
data = pd.DataFrame( { 'x': [1.1, 3.2, 5.8 ], 'state': ['NY', 'NJ', 'PA'], 'stuff': ['a','b','c']} )
hover = HoverTool(tooltips=[("error", "$x"),
("state", "@state"),
("stuff", "@stuff")
])
hv.Scatter( data, kdims='x', vdims=['state', 'stuff']).opts(tools=[hover], size=10).redim.range(x=(0,7))