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
-1
votes
1 answer

Passing an array with android-intent

I'm using the achartengine library and I would like to pass an array of graph point through an intent so that when I click on a button it opens up a graph with the data from the main activity. At the moment I am using a hard coded array called x in…
user3010383
  • 91
  • 1
  • 2
  • 12
-1
votes
1 answer

Android AchartEngine XLable and bar issue

Using achartengine i am displaying graphs, but issue with bars. When i add normal 5-10 data at x-axis its displayed good graphs as below image. Bar spacing displayed normal. But when i add full data between 20-25 at x-axis its not display proper…
Deval Patel
  • 780
  • 7
  • 18
-1
votes
2 answers

Removing duploicate entries in an array AFTER combining them. In java. For achartengine

I have two arrays; int[] x = {1, 2, 3, 4, 5, 1, 7, 8, 9, 10}; // x values int[] y = {30,34,45,57,77, 89, 100, 111, 123, 145}; // y values I want the entries in x to be on the x axis and the entries in y to be on the x axis when I put them into…
-1
votes
1 answer

Annotation in stacked bar chart -achartengine

I m willing to draw a aChartEngine Stacked bar chart and everthing works fine but the annotation below in bar[green color] is ligter and is not represented properly..i need custom label in middlt of the bar so used annotations when i make lable…
KOTIOS
  • 11,177
  • 3
  • 39
  • 66
-1
votes
1 answer

NoClassDefFoundError: org.achartengine.model.CategorySeries, why I can't draw a PieChart?

I need some help. I have a PieChartBuilder chart that should create a piechart using some .jar libraries.PieChartBuilder extends Activity but when it comes to start the PieChartBuilder I get the error: NoClassDefFoundError:…
tonix
  • 6,671
  • 13
  • 75
  • 136
-1
votes
1 answer

Repaint in achartengine with new values

I'm trying to use a seekbar that when you move it, a new graph will be shown in achartengine, but the problem is that paints over the old graphic, instead of repaint the chartview with new values. I've tried everything I've read in other questions…
Dv Apps
  • 153
  • 2
  • 9
-1
votes
1 answer

why is achartengine line graph not plotting properly

i am testing the latest jar of achartengine and im wondering if i am doing something wrong. here is the values i want to plot. int[] y = {73,92,83}; // y values! int[] x = {1,1,1}; This should plot as a vertical line because all the x axis plots…
user2608169
  • 145
  • 3
  • 13
-1
votes
1 answer

Graph plotted using database doesn't plot in Android

Hi I am new to android and I am writing the following code to draw a bar graph taking the values from the database. I have created the database using sqlite data browser. My problem is that when I execute the program the graph doesnot plot. Thanks…
user1844638
  • 1,067
  • 3
  • 23
  • 48
-1
votes
1 answer

View element android

I would like to show a chart that I create with GraphicalView from AChartEngineLibrary in another View element. I should do that because I use the other view element to receive messages that I use to update the chart. I don't know how to show a view…
user1755375
  • 87
  • 2
  • 7
-1
votes
1 answer

graph value on a-chart engine for android

I am new to android programing. Can some please guide me how can i get the graph value of specific co-ordinates, i,e if i click on some points on the graph. More specifically if my finger taps on any point on the screen of graph, a label should…
Aashwin Jain
  • 193
  • 1
  • 1
  • 7
-1
votes
1 answer

Android Fatal Exception main nullPointerException

I'm new in Android and I have to plot a ECG WAVES on android Tab or Phone and I have tried to use achartengine library to get my data on the lineGrap but I'm getting the NullPointerException. Can u please help me!!! Here is my…
james didi
  • 33
  • 5
-2
votes
1 answer

How do I fetch the values from the Android SQLite and store into array?

I want to make graph for line chart. so I refer achartEngine , here is my code : int[] x = {1, 2, 3, 4, 5}; int[] y = {24, 33, 15, 20, 55}; TimeSeries serial = new TimeSeries("Line 1"); for (int i = 0 ; i < x.length ; i++) { serial.add(x[i],…
leona
  • 5
  • 4
-2
votes
1 answer

plotting values on graph using achartengine

How i cant set the y axis values which has limits from 200 to 800 with interval of 10. which parameters need to set for this. and i need dates on the x axis with interval of 1 day. how can i draw this kind of chart using achartengine library i have…
ranjith
  • 4,526
  • 5
  • 27
  • 31
-2
votes
1 answer

Bar chart in aChartEngine in Android

I am working on graph chart using aChartEngine, the problem faced is that the although graph are generating, problem is graph is not coming as per need inside the view, how to fix it ?? When selecting Bar from drop down After Zooming Out and…
Akhil Jain
  • 13,872
  • 15
  • 57
  • 93
-9
votes
2 answers

Varying Bar Width on BarChart panning - Achartengine

I'm trying to make a BarChart using achartengine, but so far, I haven't been able to get rid of the following effect : bar width is only correctly displayed when values are on the edge of the screen, but at startup, bars are much bigger and…
2Dee
  • 8,609
  • 7
  • 42
  • 53
1 2 3
80
81