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

bar graph using AChartEngine library

I have a bar graph using AChartEngine library as shown below :: public class MainActivity extends Activity { private String[] mMonth = new String[] { "Jan", "Feb" , "Mar", "Apr", "May", "Jun", "Jul", "Aug" , "Sep", "Oct",…
Kiran
  • 3,095
  • 5
  • 23
  • 38
9
votes
7 answers

Label Text size according to the screen size in a chart engine pie chart in android

I am successfully displaying pie chart using achart engine.I want to customize my labels text size according to the screen size.Thanks in advance.
hcp
  • 279
  • 1
  • 5
  • 13
8
votes
1 answer

Achartengine: Inserting dates as X-values in

I'm using AChartEngine to display averages across several days (2 months if possible). I'd like to provide a comparison between one individual and a group. At this point, I'm working on how to provide dates across the x-axis (ie, 12/15/2011 or Dec.…
user836200
  • 655
  • 2
  • 12
  • 20
8
votes
3 answers

android - change achartengine graph background color

Is there a way to change the background color of the graph intent when using achartengine? Currently, it displays all the graphs with a black background. I looked into GraphicalActivity.java but couldnt find a solution. Anyone?
Umang
  • 583
  • 2
  • 12
  • 28
8
votes
1 answer

Achartengine Line Graph

I'm using Achartengine to create a Line Graph. My current month is showing however the second line, last month, isn't showing it. Here's the lass and logcat: So as you can see from the logcat my dates are correct and so is the count from the…
jcaruso
  • 2,364
  • 1
  • 31
  • 64
8
votes
4 answers

How to Display AChartEngine bar chart properly

I am using achartengine 1.0.1 (latest) and want to demonstrate a bar chart. This is what I want: My Desired Graph What I achieved so far 1:1 view: Zoom-out View: Problems: the left and right portion of graph are lost in 1:1 view. The distance…
Kaidul
  • 15,409
  • 15
  • 81
  • 150
8
votes
2 answers

What is the purpose of the scale argument in functions such as setYLabelsColor()?

In the achartengine library, the class XYMultipleSeriesRenderer which has two functions: public void setXLabelsColor(int color) public void setYLabelsColor(int scale, int color) setXLabelsColor() intuitively makes sense since one only needs to…
Eric Ren
  • 172
  • 1
  • 7
8
votes
1 answer

How to set labels for X and Y axis in dual line chart using aChartEngine in android?

Hi all I am very new to chart applications. I created dual line chart using aChartEngine for my android application. I cant set labels for y-axis in my chart. I got chart like this..... How can i do this can anybody help me? Thanks in advance.
malavika
  • 1,331
  • 4
  • 21
  • 54
8
votes
3 answers

Margin Between X-Axis Title and X-Axis Labels in AChartEngine

Iam using AChartEngine Stacked Bar Chart. Can i add spacing between X-Axis Title and X-Axis Labels. They are too closed to each other. set Bottom Margin will only add spacing between X-Axis Title and Legend.
Fahad Abid Janjua
  • 1,024
  • 3
  • 14
  • 35
8
votes
4 answers

LinearLayout achartengine Chart not displaying in ScrollView

I'm trying to create an achartengine chart within a scrollview but it won't display! It just shows a black screen, but doesn't crash or anything. The thing is if I just change my tag to the chart displays just fine. And in my Java code I do have…
VinC
  • 447
  • 1
  • 7
  • 17
7
votes
1 answer

how to implement TimeChart in achartengine with android

I'm new in android and I want to use achartengine to implement time chart that represent the daily outgoing call durations from call log. Does any one know how can I do this and what should I do?
Basant
  • 305
  • 1
  • 8
  • 23
7
votes
7 answers

How to set the background image for achartengine line chart in android?

I am using achartengine to dispaly the line chart in my application.I need to add the bg image for the chart , but when I set the bg image in xml , its not working. Have anyone tried this? Thanks in advance.
Nancy
  • 153
  • 1
  • 2
  • 6
7
votes
1 answer

bar color is visible for 0 values in AchartEngine, android

I have used AchartEngine to display Barchart. In my chart bar color is visible for 0 values also. I have checked like the following.. but it set all the values to transparent. I want to set the bar color to values having greater than…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
7
votes
2 answers

How to Draw line Graph having different colors in Single Line

I want to Make the Line Graph like Below Image : I've had a look at some Stackoverflow questions such as How to Draw Line with Using Canvas, How To Draw Lines With Different Colors and so on. But I haven't been able to figure it how to do it…
Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107
7
votes
2 answers

android achartengine - How to recognize which bar is touched in a bar chart?

Iam working on an android app and using AChartEngine for bar charting. Everything is working as it should except that I can't figure out which bar in the graph is touched (not clicked). It seems that .getCurrentSeriesAndPoint() isn't working within…
ChristianR
  • 75
  • 4
1
2
3
80 81