Is there any API for drawing开发者_JS百科 charts on iphone?
Yes there is: s7vengraphview.
There is no build in API. I was looking for the same some time ago and found this Blog Post very helpful. It descripes the use of the Google Chart API.
Maybe you also can use one of the following (not tested):
SM2DGraphView
Narrative -- Cocoa Plotting Framework (alpha state)
There is no chart drawing API built into the iPhone OS or SDK.
However, Apple's Accelerometer example app contains 2D chart drawing code that you can use.
I have written a library called PowerPlot which is available under a dual-license model.
There are other alternatives, one frequently mentioned choice being Core Plot, see also this thread for further discussion.
精彩评论