Questions tagged [achartengine]

A charting software library for Android applications by Dan Dromereschi.

AChartEngine is a charting library for Android applications by Dan Dromereschi. It currently supports the following chart types:

  • line chart
  • interpolated line chart
  • area chart
  • scatter chart
  • time chart
  • bar chart
  • pie chart
  • bubble chart
  • doughnut chart
  • range (high-low) bar chart, including support for gradient colored bars
  • dial chart / gauge

All the above supported chart types can contain multiple series, can be displayed with the X-axis horizontally (default) or vertically and support many other custom features (labeling, colors, zoom & pan, pinch zoom,...). The charts can be built as a view that can be added to a view group or as an intent, such as it can be used to start an activity.

AChartEngine is currently at the 1.1.0 release and is available from the project's web site.
Alternate link A nightly build for version 1.2.0 is available here.

A good way to start is to checkout demo sources and experiment with it. The demo app includes many examples, using almost all AChartEngine features.

A good tutorial can be studied here and another one here.

The AChartEngine Facebook page shows a nice list of applications using it.

1215 questions
4
votes
1 answer

Bar chart not working in AchartEngine

I am trying to create Bar Chart using AchartEngine but various things doesn't work for me.. 1) Unable to show Grid. 2) Unable to remove category series title i.e "Bar Graph". 3) It's not showing bars as it should show. 4) By Default white color…
moDev
  • 5,248
  • 4
  • 33
  • 63
4
votes
2 answers

How to plot the real-time graph using achartengine similar to oscilloscope

I am working with achartengine. I have to read a txt file and plot the graph. I get the graph plot. But, what I want to do is when the graph reaches the end of the layout view, it should get plotted from the beginning view as similar to oscilloscope…
Pooja
  • 77
  • 1
  • 6
4
votes
1 answer

Android AChartEngine : SalesComparisonChart lines do not reach the exact value

i am using AChartEngine library for android and i am drawing a chart using SalesComparisonChart class. but i noticed that the lines drawn does not reach the same value in number, it is drawn below the exact value like below in the photo . in…
Rana Osama
  • 1,313
  • 2
  • 17
  • 27
4
votes
2 answers

aChartEngine: How to add padding between the chart and the y-axis labels

I'm using aChartEngine to display a simple bar chart. I would like to add padding between the chart itself and the y-axis labels. The labels touch the border of the chart, which doesn't look too great. I know of the setMargins method of the…
Ryan
  • 1,331
  • 2
  • 12
  • 18
4
votes
3 answers

How to stop scrolling of AChartEngine dynamic line graph along the y-axis?

I have set min max range for y-axis values but graph can scroll beyond those values which hampers the look and feel of graph. I wish to control/stop scrolling of graph along the y-axis. How can I do that?
vikram
  • 83
  • 1
  • 7
4
votes
1 answer

AChartEngine chart lose auto following after first touch

I'm currently using AChartEngine library to dinamically draw my sensor data. It's working fine and when i receive new data the chart scroll and update Y axis values correctly. The problem is when i touch the chart to manually zoom, move or anything…
Alvins
  • 867
  • 16
  • 27
4
votes
3 answers

Adding % sign to Y-Axis Labels in Bar Chart AChartEngine

I am working on an android app and using AChartEngine for Charting. The Bar Chart is drawn on the basis of the dynamic data coming from a server. Th Y-Axis labels are set to be shown from 0 to 100 and no of labels are 11 s it shows…
Fahad Abid Janjua
  • 1,024
  • 3
  • 14
  • 35
4
votes
1 answer

Dynamically updated charts with Achartengine

I will like to have a chart in my application that the user can update when inserting data in an edit text. That is to say I want that when a user inserts data in the edit text and sent them with the send button the chart updates and shows the new…
user1755375
  • 87
  • 2
  • 7
4
votes
1 answer

onCreateOptionsMenu() is called twice when switching tabs and OnOptionItemSelected() is not called

I have 3 tabs in my application using actionbarSherlock and achartengine library in the app too: Its like when i start my application and move from the home tab to the 2nd tab or even if i move to 3rd tab the my onCreateOptionsMenu() is called twice…
Varun
  • 87
  • 1
  • 10
4
votes
1 answer

How to set X axis min and max

I'm trying to set X axis min and max. I found methods mRenderer.setXAxisMax(value); mRenderer.setXAxisMin(value); but i don't know how set X in TimeSeries. When I use timestamp mRenderer.setXAxisMin(1347963701812) it says that int is…
Dr Glass
  • 1,487
  • 1
  • 18
  • 34
4
votes
2 answers

Are multiple stacked Bar charts possible using Achartengine?

I tried adding another set of values to the demo example of stacked bar charts with achartengine, but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars? public Intent getIntent(Context context) { …
adfsafa
  • 75
  • 4
4
votes
3 answers

Highlighting Pie Chart Slice When Clicked in AChartEngine

I want to highlight (change color) of a pie graph specific slice when clicked by the user. I can find in the samples (the code below) that it is possible to show the index of the slice and the exact point. but what about recoloring the slice…
Abdelwahed
  • 1,694
  • 4
  • 21
  • 31
3
votes
3 answers

Issue in achartengine jar file

I have created an app in which I have used achartengine to construct the graph. It was running ok, but today I saw an update for android SDK to r17. Once I updated the SDK the app I had build started crashing. In the logcat is the following error…
AndroidDev
  • 4,521
  • 24
  • 78
  • 126
3
votes
2 answers

aChartEngine, GraphicalView OnClickListener not working

I'm new to android and am using aChartEngine to create a bar chart. I want to capture the x and y values when a user clicks on the chart. I have looked at the demos from aChartEngine and have my chart creating fine. However the onClickListner does…
user1243135
  • 31
  • 1
  • 3
3
votes
2 answers

achartengine multiple lines in one linegraph

I am trying to make two lines appear in a graph according to this video: http://www.youtube.com/watch?v=5DGldVzC-bU My code: public class LineGraph { public Intent getIntent(Context context){ int[] x = {1,2,3,4,5,6,7,8,9,10}; …
Jani Bela
  • 1,660
  • 4
  • 27
  • 50