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
5
votes
2 answers

Bar overlapping to Y-axis when Panned in the aChartEngine

I am working on the application which display the bar graph in it. The bar graph are draw according dynamically values are received to them, the bar graph data is in MB/KB. Code Snippet :- private void graphinit(ArrayList graphInDataList,…
Swapnil Sonar
  • 2,232
  • 2
  • 29
  • 42
5
votes
1 answer

Graph visible outside X and Y axis

I am using achartengine for data that my application is continuously receiving over a socket connection. The point are plotted against time which is my x axis. Once the graph is in place a user can pan and zoom on the graph. Everything is buttery…
Umesh
  • 4,406
  • 2
  • 25
  • 37
5
votes
1 answer

complete bar chart in screen in AchartEngine

I get bat barchart as like below. I have used below code for it. public void createBarChart(String loanName1,String loanName2){ XYSeries loan1Series = new XYSeries(loanName1); // Creating an XYSeries for Income XYSeries…
Girish Bhutiya
  • 3,111
  • 5
  • 31
  • 50
5
votes
1 answer

Setting background color to achartengine graph view

I am using Achartengine for my application as chart generation tool, I am not able to change the main background view of the chart though the theme is sel as "light holo" (ICS) still it gets black when I add the GraphicalView to the linear layout.…
MGD
  • 723
  • 2
  • 11
  • 36
5
votes
2 answers

achartengine and hide series in legend

This is possible to hide series(title and line) in legend chart, lise on chart is still visible? I wnat only hide data in legend my I want to see my series on chart. I don;t want to hide all series in legend, only few.
edi233
  • 3,511
  • 13
  • 56
  • 97
5
votes
2 answers

gradient color for Line Chart inside AchartEngine

I am Using AchartEngine to Draw a Line Chart. What I have Done: I want to Make The LineGraph with Using Achart Engine. But with Different Color Gradient enabled like we do in Barchart. I have Make the Line chart with No Worries. I know Gradient is…
Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107
5
votes
2 answers

Draw a Line in aChartEngine

I would like to have a vertical cursor show up at the location where i touch the chart area. a textview that is associated with this line would display the value of the bar the y-axis value of the point in it. and when i move my finger to the left…
SairSalazar
  • 113
  • 1
  • 7
5
votes
1 answer

how to change the margin of the piechart in achartengine?

I am Using achartengine api for drawing piechart. Defaultly the Piechart displays in the center but I want to move it to the left corner of the layout I used the "setMargin()" but it does not work.
Saravanapandi_PSP
  • 351
  • 1
  • 3
  • 11
5
votes
1 answer

Android - Achartengine XYScatter OnclickListener

I am having an issue getting the onclicklistener to work with achartengine1.0.0 for android. Specifically I am not able to return anything from the ".getCurrentSeriesAndPoint" (always null). SeriesSelection seriesSelection =…
nate
  • 51
  • 2
5
votes
1 answer

Achartengine on android - multiple Y axis

Having a hard time getting multiple Y axis to show up on a chart using achartengine on android. I have tried to copy what was done on the "Multiple Temperature Chart" demo here:…
Martin
  • 4,711
  • 4
  • 29
  • 37
5
votes
1 answer

turn off zoom achart engine

AchartEngine have two ways to zoom chart. First is by the "button" and second by the "fingers". Is there a way to disable one of them? I don't want to zoom by "fingers". Is it possible?
Dr Glass
  • 1,487
  • 1
  • 18
  • 34
4
votes
1 answer

SetPanLimits() with dates in the axis Achartengine

I have a graph where the information in the x Axis are dates. I want to limit the pan but I don't know how to do it with dates! I found this question but has no answer yet! AChartEngine Messed up labels Thanks! Solution: I did it in a very ugly way,…
Lucia
  • 614
  • 1
  • 9
  • 30
4
votes
1 answer

XY Chart for Random generator

I am trying to create a dynamic chart for my random generator that keeps pumping values. For the graph I am using AChartEngine. I am clear about my approach in the sense of using the Async Task mechanism to do the update thorough the background…
nino
  • 55
  • 1
  • 7
4
votes
1 answer

android - How to implement the Line Graph using Achartengine

I am new to Graph concept in android. In my app i want implement the line graph using achartengine. I have the demo of achartengine it consists a lot of code. I am not able to understand the line graph. I want simple Line graph using achartengine.…
naresh
  • 10,332
  • 25
  • 81
  • 124
4
votes
1 answer

how to display legend on right side of piechart in achartengine android

I am using the pie chart view from achartengine's tutorial. Here is what i want. I want the legends i.e. pass/fail to be displayed to the right of the pie chart as shown in the figure. In the demo examples of achartengine, they are bottom aligned.…
Shafi
  • 1,368
  • 10
  • 24