i need to set background color of hosting view in core plot to clear color.can anyone help me with that?
The Core Plot hosting view is a subclass of UIView
. It should default to a clear backgroundColor
. See the UIView docs.
You can also set a fill on the graph using your image instead of placing it in the background.
graph.fill = [CPTFill fillWithImage:[CPTImage imageWithCGImage:myCGImage]];
This is just one example. CPTImage
also has several other initialization methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With