Sabbath
Sabbath

Reputation: 91

How to change the theme of CPTXYGraph

I'm trying to change the theme of my graph .

My code is :

graph = [[CPTXYGraph alloc] initWithFrame:CGRectZero];
graph.plotAreaFrame.borderLineStyle = nil;

I thought by doing this that the border of the graph would disappear. But it didn't .

Who can tell me why?

Upvotes: 0

Views: 313

Answers (1)

Eric Skroch
Eric Skroch

Reputation: 27381

Several parts of the graph can have border lines. Try these as well:

graph.borderLineStyle = nil;
graph.plotAreaFrame.plotArea.borderLineStyle = nil;

Upvotes: 1

Related Questions