Monday, August 29, 2011

Complete Guide for Wall Graph (MIM Chart Lib)

Following is our data and we want to plot Months Vs. Income

Our code residing in XCode Project > HowToUseFiles > WallTestClass.m

      [MIMColor InitFragmentedBarColors];
    
    
    NSString *csvPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"myTable1.csv"];
    WallGraph *wallGraph=[[WallGraph alloc]initWithFrame:CGRectMake(50, 40, 600, 400)];
    wallGraph.xIsString=YES;//For Now only xIsString=YES is supported.
    wallGraph.isGradient=YES;
    wallGraph.isShadow=YES;
    wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=NONE;
    [wallGraph readFromCSV:csvPath  TitleAtColumn:0  DataAtColumn:4];
    [wallGraph displayYAxis];
    [wallGraph drawWallGraph];
    [self.view addSubview:wallGraph];
    

So our result looks like following

























--------------------------------------------------------------------------------------------------------------------------------------------
The setting as shown in the code below will give result as shown in screenshot just below the code

       wallGraph.isGradient=YES;
    wallGraph.isShadow=NO;
    wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=CIRCLEBORDER;


























--------------------------------------------------------------------------------------------------------------------------------------------
Tapping on the Anchor points, will display the corresponding data of the point.

       wallGraph.isGradient=YES;
    wallGraph.isShadow=YES;
    wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=CIRCLEBORDER;



























--------------------------------------------------------------------------------------------------------------------------------------------

       wallGraph.isGradient=YES;
    //wallGraph.isShadow=YES;
    //wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=CIRCLEFILLED;



























--------------------------------------------------------------------------------------------------------------------------------------------

       wallGraph.isGradient=YES;
    //wallGraph.isShadow=YES;
    //wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=NONE;DE




























--------------------------------------------------------------------------------------------------------------------------------------------

       wallGraph.isGradient=YES;
    //wallGraph.isShadow=YES;
    //wallGraph.style=14;
    wallGraph.needStyleSetter=YES;
    wallGraph.anchorType=DEFAULT;



























--------------------------------------------------------------------------------------------------------------------------------------------
NOTE: wallGraph.needStyleSetter=NO; For remove the NEXT button on the screen.


Entire Guide can be found HERE along with downloadables.

2 comments:

  1. I really like your writing style. Such a nice Post, Can’t wait for the next one.
    Dell Laptops

    ReplyDelete