I'm using Core Plot to draw a scatter graph. The points (which are in an ordered sequence) are connected by line segments. I need to visualize the line direction (and it might overlap or cross itself). I've been able to set each of the points to a different color form dark to light, like this:
and
I'd like to have the line change color, too, in a linear fashion from the first point to the last. How can I use CPTGradient to do this?