iPhone 有没有好的图表库? [英] Is there a good charting library for iPhone?

查看:34
本文介绍了iPhone 有没有好的图表库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我正在开发的 iPhone 应用程序中呈现和显示图表(现在是条形图,但以后可能需要更多类型).我环顾四周,似乎还没有任何真正好的、成熟的 iPhone 图表库.我还在 Mac 上寻找了为 Cocoa 编写的可以改编的东西,但还没有找到任何好的东西.

I have a need to render and display charts (bar charts for now, but more types may be needed later) in an iPhone app I'm working on. I've done some looking around and it doesn't look like there are any really good, mature charting libraries for iPhone yet. I've also looked for something written for Cocoa on the Mac that can be adapted, but haven't found anything great yet.

有人处理过这个吗?有什么建议吗?

Anybody dealt with this before? Any recommendations?

我确实找到了核心情节,但它似乎处于早期阶段发展.

I did find Core Plot, but it seems to be in the early stages of development.

编辑以添加一些要求的详细信息(按照目前的情况;))

Edit to add some details of requirements (as they currently stand ;) )

  • 条形图
  • 水平条形图
  • 双堆积条形图
  • 轴标签(包括在 y 轴上旋转 90 度)
  • 图表上每个条形上方的标签
  • 阴影或自定义背景

推荐答案

推动 Core Plot 项目的众多因素之一是 iPhone 上缺乏良好的绘图框架.Core Plot 还包含许多其他用例,包括桌面系统,但其设计从一开始就包含 iPhone 支持.它已非常接近可用,目前已在多个 iPhone 和 OS X 应用程序中使用.

One of the many factors that motivated the Core Plot project was the lack of good plotting frameworks on the iPhone. Core Plot also encompases many other use cases including desktop systems, but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications.

编辑 2/10

自从我第一次发布摘要以来,核心情节已经走了很长一段路.该框架现在有条形图(我相信包括水平条形图)、轴标签(包括任意旋转)以及图形的填充和背景.我不确定堆积条形图,但添加到实现条形图的 CPBarPlot 类并不难.至于注释,有一个 CPAnotation 类,如果没有您需要的确切功能,您可以将其子类化以添加注释.

Core Plot has come a long way since I first posted the summary. The framework now has bar charts (including horizontal bar charts, I believe), axis labels (including aribrarty rotations), and fills and backgrounds for graphs. I'm not sure about stacked bar charts, but it wouldn't be hard to add to the CPBarPlot class that implements bar charts. As for annotations, there is a CPAnotation class which you could subclass to add your annotations, if there isn't the exact functionality you need.

项目 在 github 上.

这篇关于iPhone 有没有好的图表库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆