Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
Background color of the chart
posted

Hi,

I addeda graphic as subview of a view with blue backgroundcolor , I can not set the background color of the chart in white. how can I do to remove the " transparency " ?

I tried this code but does not work

    IGChartThemeDefinition *theme = [IGChartGradientThemes IGTheme];
    theme.backgroundColor = [UIColor whiteColor];
    theme.plotAreaPalette.color = [[IGBrush alloc] initWithColor:[UIColor whiteColor]];

    chart.theme = theme;

Here a preview


Thanks



Parents
  • 26458
    Verified Answer
    Offline posted

    Hi,

    It looks like the background property isn't working for some reason. We'll investigate this further and fix it as soon as possible. 
    I've entered a bug report in our system for you.

    Until this gets fixed the best workaround is to either change the parent view's background to white, or, if that isn't possible, add another view with white background to host the chart.

    Sorry for the inconvenience. 

Reply Children
No Data