How to set linecolor for linechart using coreplot?
Asked Answered
Y

1

6

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.

Yoho answered 15/11, 2011 at 13:17 Comment(0)
P
9

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

That's where you can set your line color.

Planula answered 15/11, 2011 at 13:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.