Android charts: achartengine or AndroidPlot?

十年热恋 提交于 2019-11-29 06:10:49

问题


I want to develope 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.

I need the following requirements:

  1. Line plot with 3 or more series
  2. Dynamic plots
  3. Integration witha layout with other gui
  4. Integration with database

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


回答1:


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

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).

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.




回答2:


I think AchartEngine is better because you have lots of flexibility. and it is a open source library.there is a good number community to help you out. It's a better library if you want different kind of bars in your application.




回答3:


If you want to use AChartEngine, you can get a complete example from here.




回答4:


Looking at the usage metrics on http://appbrain.com, currently AChartEngine is used by 0.61% of the 700K applications while AndroidPlot is used by 0.17%. All the other metrics show an even higher difference in usage. Hmmmm....

http://www.appbrain.com/stats/libraries/details/achartengine

http://www.appbrain.com/stats/libraries/details/androidplot



来源:https://stackoverflow.com/questions/7730827/android-charts-achartengine-or-androidplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!