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?