I am new to Iphone and i want to make bar chart can some one provide basic tutorial for it.I want make Simple line and small rectangle portion to show coordinate.
Thanks .
Try using core-plot.
You can look at DSBarChart. A simple Objective-C Bar Chart / Histogram library.
And here is the sample usage
Related
I am a newbie to the graph functionality in an iPhone application.
I am having array of numbers for which I want to make the simple static line graph without using the coreplot library since I have already tried this which seemed to me quite complicated.
Can anyone please fix out my problem ?
You can draw Line chart using CoreAnimation.
Alternatively you can use core plot also : http://code.google.com/p/core-plot/
hi You can Draw your simple line chart without using core plot just refer following link.
http://code4app.net/ios/Line-Chart/4fc844616803faf26a000002
here you can get demo for simple line graph.
I hope this will help full to you.
I draw PieChart with 4 slices in iPhone app. I want to add Names in each Slice in Pie Chart. Am using Core-Plot9. And also i want to give different colors for each slice in PieChart. How can do this? Please suggest me any idea/sample code to do this. Please help me. Thanks in advance.
download the samples from given link then go to
CorePlot_0.9->Source->examples->CPTTestApp-iPhone check this sample. it will give you an idea how to solve your problem?
core plot example
Here I stuck with a problem in drawing the pie chart using coreplot in iphone sdk.
Actually my problem is to represent a line between each slice and the title of that slice I searched for the properties but I didn't found.
Anyone's help will be deeply appreciated.
Thank you all,
Monish.
There's nothing like that built into Core Plot currently. You could make a subclass of CPTTextLayer that draws the connecting line in addition to the text and use that to make custom data labels.
HELLO ALL
i want to draw bar chart for my app and i feel S7GraphView is easier then core-plot...as i tried to download and use core plot but its not happening ...for me
can any one knows how to draw bar graph by use of S7GraphView?
thank you in advance
S7GraphView doesn't draw bar graphs.
You can choose to use Core-Plot (it's very difficult to use it) or to draw rectangles with quartz
I want to draw a piechart in my application. Do anyone know any code or tutorial to help me out. I found some in the following link
http://rajeev.name/blog/2009/01/18/drawing-pie-charts-using-iphone-sdk/
but if there is any other more efficient way to do it, I want to learn it.
I'm not sure if you know how to do pie charts on other platforms, but there really are some basic techniques that you should be aware of and understand, before embarking on creating pie charts on ANY platform.
See here for a pretty good discussion. There are many more out there, if you want to learn more.
Applying that to the iPhone isn't going to be child's play, but it's not too hard either. If you are looking for a library to do the work for you, look around and you'd probably find something to give you a head start.
KeepEdge offers an iPhone charting/graphing API:
http://www.keepedge.com/products/iphone_charting/
You can also check the source code of AppMobile, which has a pie chart embedded inside it:
http://github.com/omz/AppSales-Mobile/tree/master
I will recommend you to look at the "Animating Pie Slices Using a Custom CALayer" page!.
there is new, nice Pie Chart 3D library. 3D charts which you can rotate and scale with fingers + protocol for getting information about tapped slice
http://iphone.orpi.pl/?p=20