Plotting multiple line glyphs on plot. Hovertool appears over each line and overlaps. Ideally I’d like to specify a single line for the hovertool to appear over, in this case the Z0 line.
The code in question:
proj_i05 = interval_df.iloc[3,2:]
proj_i10 = interval_df.iloc[4,2:]
proj_ZL = interval_df.iloc[5,2:]
proj_Z0 = interval_df.iloc[7,2:]
proj_ZU = interval_df.iloc[9,2:]
proj_i90 = interval_df.iloc[10,2:]
proj_i95 = interval_df.iloc[11,2:]
proj_dates = interval_df.iloc[0,2:]
price_lows = interval_df.iloc[0,1:]
price_highs = interval_df.iloc[2,1:]
source = ColumnDataSource(data = dict(Date = proj_dates, P10 = proj_i10, ZL = proj_ZL, Z0 = proj_Z0, ZU = proj_ZU, P90 = proj_i90))
TOOLTIPS = [('Date','@Date'),('P10', '@P10'), ('ZL', '@ZL'),('Z0','@Z0'),('ZU','@ZU'),('P90','@P90')]
hover = HoverTool(tooltips = TOOLTIPS, mode = 'vline')
symchart = figure(plot_width = 1900, plot_height = 600, x_range = proj_dates, tools = [hover])
symchart.line('Date','P10', source = source, color = "purple", line_width = 2)
symchart.line('Date', 'ZL', source = source, color = "red", line_width = 1)
symchart.line('Date', 'Z0', source = source, color = "navy", line_width = 1)
symchart.line('Date', 'ZU', source = source, color = "red", line_width = 1)
symchart.line('Date','P90', source = source,color = "purple", line_width = 2)
symchart.vbar(x = proj_dates, width = .1, bottom = price_lows, top = price_highs, color = "green")
Thanks in advance for the ideas.