編輯:關於Android編程
ince this question was asked a few very nice open source native libraries have been created. These include:
And a commercial chart:
ORIGINAL
It looks like the creator of this question solved this problem and posted some interesting stuff about it to the Internet. I've linked to his solution along with several others that exist now.
Just to summarize: his solution involved using a JavaScript library (flot) built on top of jQuery. This library was then included in an HTML page which was loaded into a custom WebView. The custom WebView then read data from a custom Java class made accessible to JavaScript code via the WebView.addJavascriptInterface method. Details can be found at the above link.
The other solutions may present a more straightforward approach.This is my personal compilation of Android charting and plotting libraries and tools as of March 2012, I might have used some of the previous comments on this page / stackoverflow without referencing, for which I am very thankful.
Due to my low reputation, I cannot post links here, too bad.
http://code.google.com/p/afreechart/
AFreeChart is based on JFreeChart 1.0.13. (C) Copyright 2010,2011 by ICOMSYSTECH Co.,Ltd.
Screenshots:
http://afreechart.googlecode.com/svn/doc/screenshot/index.html
Javadocs:
http://afreechart.googlecode.com/svn/doc/javadocs/index.html
Download:
http://code.google.com/p/afreechart/downloads/list
http://www.shinobicontrols.com/android/shinobicharts/product-tour/
ShinobiControls for Android is a commercial chart ($195) with GPU accelerated graphics and multi-touch support.
http://code.google.com/p/droidcharts/
Attempt to port JFreeCharts to Android platform. Currently the following chart types are supported: pie chart line chart xy line chart bar chart category bar chart
Download:
svn checkout http://droidcharts.googlecode.com/svn/trunk/ droidcharts-read-only
http://code.google.com/p/chartdroid/
native chart engine for android
ChartDroid is an Intent-based "library application" for static chart and graph generation on Android. It can graph/plot/display numerical data in many representations. As a developer, you need only to have your users install the library, then implement a Content Provider according to this simple specification.
License: Apache License 2.0
Screenshots:
http://code.google.com/p/chartdroid/wiki/Screenshots
http://androidplot.com/wiki/Home
License: It's free. See our BSD License androidplot.com/wiki/License
Why use AndroidPlot instead of another 3rdParty library? Dynamic model support Plots auto adjust for screen size and orientation. Actively developed and maintained Responsive support forum
http://www.achartengine.org/index.html
http://code.google.com/p/achartengine/
It's the only one I've found that is all Java (no webview stuff), is open source, and the author isn't asking for money even if you end up using it in a pay app.
License: Apache License 2.0
Download:
http://code.google.com/p/achartengine/downloads/list
Screenshots:
http://www.achartengine.org/content/demo.html
Tutorial:
http://sites.google.com/site/androidhowto/how-to-1/create-graphs
http://android.arnodenhond.com/components/graphview http://github.com/jjoe64/GraphView
Download link:
http://android.arnodenhond.com/components
you are required to build an about page that references your usage of Graphview, and if you charge for your app you have to give a donation to the Graphview author.
http://code.google.com/p/snowdon/
A simple, fast, graphing library for Android featuring scatter plots, line graphs, area plots, histograms, bar charts and heat maps. There is a quick start project in the source, it seems to me that the labels of axes cannot be trivially changed?
http://github.com/dimagi/rapidandroid
last activity in 2010 (03/2012)
http://www.artfulbits.com/products/android/aicharts.aspx
$150 License
Dynamic Datasource Support
http://www.keepedge.com/products/android_charting/
License: Commercial
$299 License
http://www.java4less.com/charts/chart.php?info=android
costs over $140 USD for a redistribution license so that you can use it on an app that you place on the Android Market.
http://www.java4less.com/charts/chart.php?info=android
$138.60 License
http://www.niftymobileapps.com/android-chart-library
$99 License
Another Java - Android only Library with good looking but limited charts. Obvious choice if you want to quickly embed good looking charts with very little coding effort.
http://sudarmuthu.com/blog/generating-graphs-in-android
goal was to create graphs in android using any JavaScript or HTML that are stored locally. The app and the graphs should work even if access to Internet is not available.
偶然間突發奇想,想到能不能讓我們的在我們的手機設備上滑動觸摸屏進而控制pc上的鼠標移動,也就說把我們的android設備當成是pc設備的觸摸板呢?要想實現這個目標,首先要
SwipeRefreshLayout下拉刷新布局SwipeRefreshLayout是Android又一與時俱進的控件,顧名思義它隨著用戶手勢向下滑動就會觸發刷新操作。從
本文實例為大家分享了Android仿微信二維碼和條形碼的具體代碼,供大家參考,具體內容如下package your.QRCode.namespace;import jav
本文實例講述了Android中AsyncTask與handler用法。分享給大家供大家參考,具體如下:首先,我們得明確下一個概念,什麼是UI線程。顧名思義,ui線程就是管