--------------------------------------------------------------
HOW TO USE IT IN YOUR CODE
--------------------------------------------------------------
1. Add 2 frameworks for sure (QuartzCore and CoreText)
2. Copy and Paste "Lib Files" folder in your project and Also add them to your project by right clicking your project in XCode and choose "Add files to your project". Note "Lib Files" folder can be found under MIMChartLib > "Lib Files" in MIMChart Project.

3. Add the .csv file (Data file) to the project as well from which you will be reading the data. Check the sample codes to find out about csv data files OR go to GUIDE link provided above.

4. Then you can add the chart of your purpose to your view in your app.

To find out more about how to stick the chart in your view please see the sample codes.
--------------------------------------------------------------
HOW TO RUN THE SAMPLE CODES IN THE LIBRARY.
--------------------------------------------------------------
1. Go to MIMChartLibAppDelegate.m in MIMChartLib folder in XCode.

2. You will see various rootControllers. You can comment/uncomment one by one and RUN the code to see what they look like.
You can go to those Test Classes like TestClass,TestClassFragmented etc available in HowToUseFiles folder to get more idea.

--------------------------------------------------------------
AND you can find more info onHERE

It will make the pie chart look like following, you can change the tint color to see what they look like OR you canGO TO THIS POST to see them. If you tap on a region of pie chart, the respective information label gets highlighted, as in this case Indonesia is highlighted.

Now lets look at fragmented piechart , for now we can give data only through arrays, I need to add support for csv format. But you can use it as following as in XCode proj > HowToUseFiles> TestClassFragmented.m

--------------------------------------------------------------------------------------------------------------------------------------------
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.

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

If you give which column specifically you want to draw,give value of valueColumnsinRange as [NSArrayarrayWithObjects:@"1",@"3", nil] will have array of all valid columns you want to draw , It will plot those the columns on the Line graph.

-------------------------------------------------------------------------------------------------------------------------------------------------------
If you have data sheet with x and y int values only as shown in this sheet. You want to plot x Vs. y, x Vs. y1 and x Vs. y2.

You can use following code. You give array of columns for x-axis separately and array of columns for y-axis values separately. Its important to have same number of elements in array for x-axis and y-axis.

-----------------------------------------------------------------------------------------------------------------------------------------------
More details about the code used above in XCode project> HowToUseFiles > TestLineClass.m :

/*

Line Graph supports array of plain colors only.

Gradient colors are not supported yet.

*/

[MIMColorInitColors];

/*These are 3 different types of data files which can be read by MIM Lib to create Line Graph*/

Saturday, August 27, 2011

Following is the sample code and all information required to create a Bar Chart.I have added a style setter button for letting developers adjust the colors of Chart in real time development. Bar Chart is ready for release in MIM Chart Lib version Alpha 1.0

You can find this sample code in MIMChartLib> HowToUseFiles >BarTestClass.m withMIM Chart Lib.

You can change the color of bars with NEXT button, and set barGraph.style to the number displaying in front of style on screen. And to remove NEXT button, barGraph.needStyleSetter=NO;
Its that simple !

Friday, August 26, 2011

Following is the sample code and all information required to create a Fragmentedbar Chart.
I have added a style setter button for letting developers adjust the colors of Chart in real time development. FragmentedBar Chart is ready for release in MIM Chart Lib version Alpha 1.0

You can find this sample code in MIMChartLib> HowToUseFiles >FragmentedBarTestClass.m withMIM Chart Lib.

/*Important here in the beginning*/

/*This will init the Color Array*/

[MIMColorInitFragmentedBarColors];

/*

isGradient is one of the property of FragmentedBarChart

if fbarChartView.isGradient=YES; User any of following 2 methods to init the gradient colors

+(void)InitFragmentedBarColors

+(void)nonAdjacentGradient

if fbarChartView.isGradient=NO; User give method to init the plain colors

Live Feed

My Tweets

Goal to Open Source

I believe in open knowledge, hence I want to make this technology open source whatever I can on my blog. You can ask me to write about any particular mobile topic if you want. You can follow me on Twitter as well.