Not able to change background color for donutFrame?


#1

Hi,

I want to change the background color of donut but not able to do so?

Please help!!!

    CGRect donutFrame;
    donutFrame = CGRectMake(175, 100,250,410 );
     donut = [ShinobiChartdonutChartForOSVersionDataWithFrame:donutFrame];
     [donutsetBackgroundColor:[UIColorblueColor]];
   
     dataSource.donutChart = donut;
     donut.datasource = dataSource;
    donut.licenseKey = licenseKey;
    [self.view addSubview:donut];

#2

Hi Arti,

There are 3 different properties relating to background colour on a ShinobiChart that relate to different areas of the chart:

  • backgroundColor
  • canvasAreaBackgroundColor
  • plotAreaBackgroundColor

Thanks,
Jan