How can plot a line with more than one color

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

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