☰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

How can plot a line with more than one color

Community Support
reddihari
reddihari

In a timestamp vs value XY line plot which plots past data along with current day’s data, I want the line color to be different for the line parts that represents current day data and past data.
How can I do this in bokeh?

Thank you

⌁   Link to post
p-himik
p-himik

Two options off the top of my head:

  • Switch to multi_line, put color values in your data source, and point the color argument of multi_line to that column
  • Just plot multiple lines of different color manually
⌁   Link to post

End of archived discussion · Replies are disabled