Hi,
Is there a way to associate the HoverTool to a different ColumnDataSource and on the same figure? I am trying to update the second data source which Hover will work on, after a CustomJS callback after selecting a group of points.
In this case I want hover to only work on variable s2.
TOOLS = ‘box_zoom,box_select,crosshair,resize,reset’
p = figure(plot_width=400, plot_height=400, tools=TOOLS)
p.add_tools(HoverTool())
p.circle(‘DF.L1.C1’, ‘DF.L1.C2’, color=‘color’, size=4, source=s, alpha=0.4)
s2 = ColumnDataSource(data=dict())
p.circle(x=“DF.L1.C1”, y=“DF.L1.C2”, size=6, color=“black”, alpha=1.0, source=s2)
s.callback = CustomJS(args=dict(s2=s2), code="""
…
“”")
show(p)
thanks very much,
-Mark
