开发者

How to display line chart in a view?

开发者 https://www.devze.com 2023-01-30 11:01 出处:网络
I want line chart in my application can any one tell me how can we make line chart & display it i开发者_运维百科n view.& which frame work is needed for that. You mean a graph done with lines s

I want line chart in my application can any one tell me how can we make line chart & display it i开发者_运维百科n view.& which frame work is needed for that.


You mean a graph done with lines showing relationships between coordinates?

If so, Quartz drawing might be easiest. The framework is CoreGraphics. You get a reference to the CGContext, tell it where the line starts (moveToPoint, x, y) and ends (addLineToPoint, x, y), and stroke the path.


Check out Core-plot.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消