Attached is the video. Basically I’m drawing candle stick charts with segments and vbar on 1 figure and a bunch of indicators on couple of other figures. The problem is when adding tooltip to vbar in general: when hover on any vbar, other line/scatter flickers, but not OTHER VBAR in other figures. The code to add the tooltip is very simple
def set_tooltips(fig, tooltips=(), vline=True, renderers=()):
tooltips = list(tooltips)
renderers = list(renderers)
if is_datetime_index:
formatters = {"@datetime": "datetime"}
tooltips = [("Date", "@datetime{%c}")] + tooltips
else:
formatters = {}
tooltips = [("#", "@index")] + tooltips
fig.add_tools(
HoverTool(
point_policy="follow_mouse",
renderers=renderers,
formatters=formatters,
tooltips=tooltips,
mode="vline" if vline else "mouse",
)
)
I’m a new user so I can’t attach the video here, so sorry.