Search code examples
ioscore-plot

Core plot temperature gradient line


I would like to achieve gradient effect like in the attached image.enter image description here

I have tried to alter lineGradient of the CPTMutableLineStyle of the object. But couldn't reach to the same effect.

How would you do it?


Solution

  • Try the lineFill property of the line style instead. You can use a gradient or an image to provide the fill pattern.