I want to be able to set different colors for different sections of a line from a line chart. For example, I want to have a red line from spots 1 to 10, a blue line from spots 10 to 40 etc.
Right now I can only set one single color or a gradient for the entire line. Is there a more low-level way of achieving what I need?
How I see this working is having a colors param that is the same length as the spots list and contains a color for each spot.
I want to be able to set different colors for different sections of a line from a line chart. For example, I want to have a red line from spots 1 to 10, a blue line from spots 10 to 40 etc.
Right now I can only set one single color or a gradient for the entire line. Is there a more low-level way of achieving what I need?
How I see this working is having a colors param that is the same length as the spots list and contains a color for each spot.