English 中文(简体)
How to create line chart in iPhone application? [closed]
原标题:

I am creating a budget application in iPhone, to budget for personal incomes and expenses.

Client s need is

  • I want to see line graph (like stock market line report).
  • Red line for (monthly / weekly / daily) expenses
  • Green line for (monthly / weekly / daily) incomes

The question is how? Till now, I have never faced this kind of requirement. Can you please some offer some guidance regarding creating line chart in iPhone?

最佳回答

You should try Core Plot.

问题回答

I think this is the solution for it.

If you want to use graphs in your application, there are two options for you.

* Core Plot - http://code.google.com/p/core-plot/
* s7GraphView - http://code.google.com/p/s7graphview/

I found that s7graphview is more preferable to iPhone application & Core-Plot is more suitable to MAC OSx development.

I have downloaded both of them & started R & D on implementing it on application.

But Core-plot provides different kinds of facility & advance features while s7graphview is very limited.

Let me explain, how to install core plot,

First Go to this site,

http://code.google.com/p/core-plot/

You will see a command there(as given below) but you will not be able to execute it in your mac os terminal.

( hg clone https://core-plot.googlecode.com/hg/ core-plot )

Because it requires following things

  • Mercurial
  • Terminal Settings

Step 1 ) Let me explain terminal settings. Open Terminal & execute following commands

  • export LC_ALL=en_US.UTF-8
  • export LANG=en_US.UTF-8

Step 2 ) Download & setup mercurial from following link.

Step 3 ) Now open /Users/User-Name/core-plot/Examples

  • You will find samples here.

You may also continue a tutorial given here.

this link may be helpful.

http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签