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.

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 or become a Patron on Patreon

Leave a Reply

Your email address will not be published. Required fields are marked *