☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Python Bokeh rollover color

Community Support
odadoun
odadoun

Hi,

I use Python comprehensive list to display several charts and use HoverTool to display some data values.

[p.line(x='newindex', y='count', source=result.loc[result.index.year == i],\
color=next(colors),line_width=4,legend_label=str(i)) for i in unique_sorted_date]
hover_tool = HoverTool(tooltips='Date: @oldindex <br>  deces: @count')
p.add_tools(hover_tool)

I would like to highlight the line where I want to retrieve information (from tooltips). For instance, the selected line will be red and the others one greys. Is there an easy way to this?

By advance thank you
Cheers,
Olivier

⌁   Link to post
Bryan
Bryan

That is described in the docs:

⌁   Link to post

End of archived discussion · Replies are disabled