How to change line color according my condition?

Hi,

unfortunately, the line_color only accepts a single value.

If you want to have different colors for line segments, you will have to add traces for each segment, here an example:

1 Like