Reputation: 4594
What would be a simple example of drawing a plot in Android with a CHART LINE using a JAR file (and the JAR file itself)?
I want to draw a CHART LINE, not chart pie nor chart bar, and I want to do this by importing a JAR file into my application.
I have found some examples of JAR file on the Internet, but these don't have example of usage, or are way too complicated.
I just want a simple plot, and it doesn't have too be that nice (neither ugly;)))
The JAR file must be free!
EDIT:
Something like http://writerbay.net/?p=401
, but not this one :D I can't use it - I have my reasons!
Upvotes: 1
Views: 6240
Reputation: 7350
Look in Any good graphing packages for Android? for lots of charting packages with links to each one. Each one of the links has examples of how to use it. I've used AChartEngine, and it was easy enough.
See svn/trunk/achartengine/demo/org/achartengine/chartdemo/demo/chart/AverageTemperatureChart.jav for a simple example of a line chart - this example has 4 lines, but you could do one or whatever.
Upvotes: 1