Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set linecolor for linechart using coreplot?

I am using coreplot 0.9 .I had tried setting linecolor property for CPTLineStyle by

CPTLineStyle *lineStyle = [CPTLineStyle lineStyle];
lineStyle.lineColor=[UIColor grayColor];

But it is giving error that linecolor is readonly property. Please give me some solution for this.

like image 687
Varun Mehta Avatar asked Nov 15 '11 13:11

Varun Mehta


1 Answers

There's another line style type object named, helpfully enough, CPTMutableLineStyle.

That's where you can set your line color.

like image 136
Michael Dautermann Avatar answered Nov 02 '22 00:11

Michael Dautermann