Search code examples
iphonecore-plot

How do remove the border around a core-plot graph


I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind.

Pointers please!


Solution

  • You should be able to nil out the borderLineStyle on the graph's plotArea to remove the border:

    graph.plotAreaFrame.borderLineStyle = nil;    // don't draw a border
    

    You could also create your own theme, using the ones in the framework as examples, and simply not set the borderLineStyle in that.