cocoa touch - Core Plot Pie Chart not full when animating -


i have inconsistent behaviour when animating pie chart: - full animation - animation little gap @ end.

below codes , results!

image link

animation gap http://s604.photobucket.com/user/jcljk/media/img_5865_zps83ac73a6.png.html

full animation http://s604.photobucket.com/user/jcljk/media/img_5867_zps7beff336.png.html

i appreciate help.. thank

-(void)configuregraph {      ///********************** pie chart* ***************//////     // 1 - create , initialize graph     cptgraph *graph = [[cptxygraph alloc] initwithframe:self.hostview.bounds];     self.hostview.hostedgraph = graph;     graph.paddingleft = 0.0f;     graph.paddingtop = 0.0f;     graph.paddingright = 0.0f;     graph.paddingbottom = 0.0f;     graph.axisset = nil;     graph.plotareaframe.borderlinestyle = nil;     // 2 - set text style     cptmutabletextstyle *textstyle = [cptmutabletextstyle textstyle];     textstyle.color = [cptcolor graycolor];     textstyle.fontname = @"helvetica-bold";     textstyle.fontsize = 16.0f;     self.selectedtheme = [cpttheme themenamed:kcptplainwhitetheme];     [graph applytheme:self.selectedtheme];          ///********************** end of pie chart* ***************//////   }  -(void)configurechart {     // 1 - reference graph     cptgraph *graph = self.hostview.hostedgraph;     // 2 - create chart     cptpiechart *pieplot = [[cptpiechart alloc] init];     pieplot.datasource = self;     pieplot.delegate = self;     pieplot.pieradius = (self.hostview.bounds.size.height * 0.7) / 2;      pieplot.identifier = graph.title;     pieplot.startangle = 0;     pieplot.endangle = m_pi*2;//2 pi 1 circle     pieplot.slicedirection = cptpiedirectionclockwise;     pieplot.identifier = @"pie chart";      graph.plotareaframe.borderlinestyle = nil;      [cptanimation animate:pieplot                  property:@"startangle"                      from:0                        to:m_pi*2                  duration:0.5];   [graph addplot:pieplot]; } 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -