Android 图表:achartengine 还是 AndroidPlot? [英] Android charts: achartengine or AndroidPlot?

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

问题描述

我想开发一个活动来在图中显示传感器数据.我环顾四周,发现对我来说更有趣的选项是 achartengineAndroidPlot.

I want to develop an activity to display sensor data in a plot. I've been looking around and I have found that the more interesting options for me are achartengine and AndroidPlot.

我需要以下要求:

  1. 具有 3 个或更多系列的线图
  2. 动态图
  3. 将布局与其他 GUI 集成
  4. 与数据库集成

我认为这两个库都符合我的要求,但有人可以根据他的经验告诉我哪个更好吗?哪个更容易与应用集成?

I think that both libraries are ok with my requirements, but could someone tell me from his experience which one is better? Which one is easier to integrate with an app?

推荐答案

我没看过 AChartEngine,但使用过 AndroidPlot,可以在这里分享我的经验.

I haven't look at AChartEngine but have used AndroidPlot and can relay my experience here.

我的图表上的多条线已成功实时更新(要求 1 和 2),并且该图表已嵌入到另一个控件中(要求 3).

I've successfully had multiple lines on my chart being updated in realtime (Req 1&2) and this chart has been embedded inside of another control (Req 3).

对于 Req 4,我没有使用过数据库,但我的猜测是您必须编写代码来执行查询并自己更新图表.

For Req 4, I haven't worked with a db but my guess is that you would have to write the code to do the query and update the chart yourself.

这篇关于Android 图表:achartengine 还是 AndroidPlot?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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