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
3 answers

Android aChartEngine XY Chart

I'm using aChartEngine's 0.7.0 charting library for Android. I have a working XY chart that changes dynamically about every second when new data is received. However, it draws the line chart from left to right and eventually moves out of view. The…
Damon
  • 718
  • 2
  • 8
  • 22
4
votes
3 answers

achartengine Legend issue

I am using achartengine for drawing a chart in my app. So far the chart is drawn succesfully. the only problem i have is when i try to remove the legends. As for my app I feel I do not want the legends. So I used renderer.setShowLegend(false); and…
Ajax3.14
  • 1,647
  • 5
  • 24
  • 42
4
votes
1 answer

classes not found achartengine

So i've been trying to implement achart engine for android into my project but i have some slight complications that i don't really know how to resolve, The first problems DDMS points out before the fatal exception is that i cannot find the classes…
Krewie
  • 115
  • 1
  • 11
4
votes
0 answers

Display live graph in Widget in android

I want to use graph in widget. Like This! I want to make graph using AchartEngine. Graph using AchartEngine is working in normal app but how to implement it in widget? Here is My code: public class MainActivity extends ActionBarActivity { …
Alpa Mori
  • 260
  • 1
  • 11
4
votes
3 answers

How to increase the zoom ratio when do pinch to zoom in graph - AChartEngine

We are using AChargEngine in our android application and it is working perfectly fine. But when I do pinch to zoom it's zooming very less, I want to increase that zoom ratio. Example: If I do normal pinch to zoom and in that case if it is zooming…
Mohit Charadva
  • 2,555
  • 1
  • 22
  • 30
4
votes
1 answer

combination of two bar chart and two line chart using aChartEngine in Android

below code to combine two bar and two line chart : public class GraphCombination { private Context context; private String[] weekDays = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thrusday", "Friday", "Saturday" }; private…
Umang Kothari
  • 3,674
  • 27
  • 36
4
votes
1 answer

Show a small popup at the point where user clicks on the graph (achartengine)

I want to show a small popup at the point where user clicks on the graph.I have read the answer given for the question Showing popup on clicking a point in graph AChartEngine it suggests toast as the answer but I want user to select between two…
Prerak
  • 109
  • 10
4
votes
2 answers

Android - achartengine bar chart issues

I use achartengine to draw my chart in an android application and have 2 issues with bar chart. 1: values at top bar doesn't align center 2: width of bar too small when just 1 bar in chart Here my code for setting chart GraphicalView mChart; …
Unoken Mouny
  • 157
  • 1
  • 3
  • 14
4
votes
2 answers

aChartEngine: how to display real-time updates

I'm currently using achartengine to display real-time data received using bluetooth. The data is correctly collected on a specific thread and sent ever 100ms in a Bundle to my main activity. The main activity contains 4 charts from the achartengine…
Basile Perrenoud
  • 4,039
  • 3
  • 29
  • 52
4
votes
2 answers

Changing the legend size in AChartEngine

I would like to specifically change only the legend size outputting for a Pie Chart. I've tried all methods I can find for AChartEngine, but none of them only change the legend text size. Do I have to override the onDraw function? If so, how?
Nathan Petersen
  • 214
  • 5
  • 16
4
votes
1 answer

achartengine toScreenPoint(double) always returns nullPointerException

Every time I call this method it return nullpointerexception: java.lang.NullPointerException at org.achartengine.chart.XYChart.toScreenPoint(XYChart.java:867) I see mScreenR of chart is null Without using this method toScreenPoint(double) the…
4
votes
1 answer

How to do auto Pan (scrolling) with AChartEngine dynamic line graph along with X-axis?

I had created dynamic line graph using AChartEngine Api, which shows the changes in G-Force value. All works fine but when graph moves ahead in X-axis i have to manually scroll in X-axis to see it further, please check my image below if you are not…
Nirav Dangi
  • 3,607
  • 4
  • 49
  • 60
4
votes
2 answers

Displaying the %ofDistribution in PieChart using aChartEngine

I am trying to create a Piechart in my android app. this link using achartengine helped. But I still have a problem. I want to display the % of distribution in the pie chart itself Thanks in advance.
4
votes
1 answer

AChartEngine Y-Axis custom labels area margins and chart values as String?

I have created a Chart shows Questions (X) / Time (Y) answered during a test. You can see the first question here for details. But now I need to show the chart bullet values correctly, at the moment shows the milliseconds value but i need to show…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
4
votes
1 answer

AChart engine limit pan to valid data points

I have an Android application that is using Achart to create a 2 graphs. Both a line graph and a bar graph. These graph will be populated with an extra data point each time the application is run. So after 10 runs there will be enough data to cover…
Matt
  • 53
  • 6