ios - How To use Fixed set of colors for the Graph in MIMChart Library? suggestions are appreciable -
i having trouble mimchart library set fixed set of colours. using ritu raj mimchart library
mimbargraph *mybarchart; mybarchart=[[mimbargraph alloc]initwithframe:cgrectmake(50, 20, mytableview.frame.size.width- 50, mytableview.frame.size.width * 0.5)]; mybarchart.delegate=self; mybarchart.tag=10+indexpath.row; mybarchart.isgradient=yes; mybarchart.groupedbars=yes; mybarchart.glossstyle=gloss_style_1; mybarchart.xtitlestyle=x_titles_style2; [mybarchart drawbarchart]; [cell.contentview addsubview:mybarchart];
try delegate
-(nsarray *)colorsforbarchart:(id)graph { nsarray *colorsarray; mimcolorclass *color1=[mimcolorclass colorwithred:0.0f/255.0f green:255.0f/255.0f blue:127.0f/255.0f alpha:1]; mimcolorclass *color2=[mimcolorclass colorwithred:255.0f/255.0f green:4.0f/255.0f blue:0.0f/255.0f alpha:1]; mimcolorclass *color3=[mimcolorclass colorwithred:255.0f/255.0f green:182.0f/255.0f blue:193.0f/255.0f alpha:1]; mimcolorclass *color4=[mimcolorclass colorwithred:1.0f/255.0f green:255.0f/255.0f blue:255.0f/255.0f alpha:1]; colorsarray=[nsarray arraywithobjects:color1,color2,color3,color4, nil]; return colorsarray; }
Comments
Post a Comment