which is the best and easy way to display stock graph in android?

十年热恋 提交于 2019-12-23 04:09:49

问题


I am developing stock app in which user can show stock detail and show stock graph.

i am using yahoo finance API to list and search stocks quote, now the i want to display there graph. i m searching since 2 day but didn't way to display dynamic data graph.

i have seen so many library but till i am not satisfied. because of all most library provide a way to display static data graph. in my task i want display graph with zooming facility as well as multi-touch support.

If any one can support me i really appreciate the person.

Thanks In Advance!


回答1:


You have a few options:

  • http://www.achartengine.org/

  • http://code.google.com/p/chartdroid/

  • http://www.artfulbits.com/products/android/aiCharts.aspx (commercial)

  • http://code.google.com/apis/chart/ (online only)

The first one for sure has zoom capabilities. I don't know about multitouch, though.

The google API has some interaction built-in and you could take advantage that it runs in a WebView, so you can use its own zoom capabilities. Since your app is going to require a network connection anyway, it seems like a reasonable option.




回答2:


AChartEngine does support multi-touch / pinch zoom. You can add / remove data to / from your datasets and then call chartView.repaint() and you will get a dynamic behavior.

Regards,

Dan




回答3:


SciChart for Android supports Candlestick charts, and will allow you to create real-time trading apps.

Check out the Android Candlestick Chart example or see the Android Stock Chart Features for more info.

Disclosure: I am the MD of the SciChart project, just so you know!



来源:https://stackoverflow.com/questions/6139288/which-is-the-best-and-easy-way-to-display-stock-graph-in-android

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