Drawing Charts in Android with AChartEngine Library

AChartEngine is a charting library for Android applications that currently supports the following chart types:

  • line chart
  • area chart
  • scatter chart
  • time chart
  • bar chart
  • pie chart
  • bubble chart
  • doughnut chart
  • range (high-low) bar chart
  • dial chart / gauge
  • combined (any combination of line, cubic line, scatter, bar, range bar, bubble) chart
  • cubic line chart

They announced that new chart types would be added in future release (Current version is 0.7.0). You can follow the updates for the library on Google Code or Facebook at http://www.facebook.com/achartengine.

You can download the aChartEngine library on Google Code.

You can also download some demo code such as TemperatureChart.java which display the following chart with just 100 lines of code including comments.

Charting Library for Android: Temperature Chart Demo
Temperature Range Chart drawn with AChartEngine Library

Here’s the code (TemperatureChart.java) to display the Chart above:

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
Khadas VIM4 SBC