Is it possible to color a LineMark based on if it is above or below a certain value?

I'm developing an app where people can rate services on a scale from -10 to 10. All of these ratings will be compiled on a server into a value that represents the average ratings of a service per month. Now, I want to display a graph to the user showing the ratings over time. If the ratings are below -5, I want the lineMark to be colored red. If the ratings are between -5 and 5, I want them colored yellow. And if the ratings are over 5, I want it to be green.

TL;DR: I want the line to be colored differently based on the Y value

Is this possible/if so, how could I go about it?

What do you want colouring, the whole line the same color or segments of the line different colours? You can colour individual points on the line differently, but separate segments I'm not sure about. I think the line can only be one colour. Anyway, if you wanted different segments it might look a bit odd as they're supposed to be transitions to other points. Saying that, you could use a gradient but I don't know if that's what you're looking for.

The idea is that any point below Y = 0 could be colored red, while anything above Y = 0 would be green

Is it possible to color a LineMark based on if it is above or below a certain value?
 
 
Q