Can I set the background color for hosting in the kernel?

I need to set the background color of the hosting in the main plot in order to clear the color. Can anyone help me with this?

+5
source share
1 answer

The Core Plot host view is a subclass UIView. The default should be clear backgroundColor. See UIView Docs .

You can also set the fill on the chart using your image, instead of placing it in the background.

graph.fill = [CPTFill fillWithImage:[CPTImage imageWithCGImage:myCGImage]];

This is just one example. CPTImagealso has several other initialization methods.

+6
source

All Articles