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

查看:168
本文介绍了有没有一个好的图表库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 ;) )


  • 条形图

  • 水平条形图

  • li>
  • 轴标签(包括在y轴上旋转90度)

  • 图表上每个栏上方的标签

  • 阴影或自定义背景

  • Bar Charts
  • Horizontal bar charts
  • Double stacked bar charts
  • Axis labels (including rotated 90 degrees on the y axis)
  • Labels above each bar on the chart
  • Shaded or custom backgrounds

推荐答案

Core Plot项目的许多因素之一是在iPhone上缺少好的绘图框架。核心图还包括许多其他用例,包括桌面系统,但其设计从一开始就包括iPhone支持。

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

Core Plot自我第一次发布摘要以来已经走了很长的路。框架现在有条形图(包括水平条形图,我相信),轴标签(包括aribrarty旋转),以及图形的填充和背景。我不确定堆叠条形图,但不会很难添加到实现条形图的 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天全站免登陆