Questions tagged [android-graphview]

GraphView is a library for Android to programmatically create flexible and nice-looking diagrams.

GraphView is a library for Android to programmatically create flexible and nice-looking diagrams. It is easy to understand, to integrate and to customize it. At the moment there are three different types:

  • Line Charts
  • Bar Charts
  • Point Charts

Resources:

Exported .jar lib - https://github.com/jjoe64/GraphView/blob/master/public/graphview-3.1.jar?raw=true

GitGub Project Page - https://github.com/jjoe64/GraphView

Examples - https://github.com/jjoe64/GraphView-Demos

Website - http://www.android-graphview.org/

The library is compatible from android 1.6 - 5.0. More can be found on the project homepage.

454 questions
1
vote
1 answer

How to zoom out graph programmatically via using GraphView?

I`m using graph library - GraphView. User can zoom in/zoom out graph. I want to zoom out graph on click button in the default state. Is there are any available methods that can zoom out graph programmatically? Or I should Override some standard…
MrStuff88
  • 327
  • 3
  • 11
1
vote
0 answers

GraphView shows X-axis labels for points which are not data points

I have created a dummy app where I am trying to log the users data and generate a simple line graph out of it. I am using GraphView to generate the graphs in my app. User has to sign in using her gmail and then click on "Create" link in the…
MSS
  • 3,306
  • 1
  • 19
  • 50
1
vote
1 answer

Android GraphView incorrect X-axis steps when formatting labels

I am using android-graphview to plot Temps with time for a weather forecasting app. In my tab "24hours" I plot the data from the current time and until 24hours later. I have weather forecasts in 3-hour steps. To achieve proper display on x-axis,…
Theo S
  • 11
  • 1
  • 4
1
vote
0 answers

GraphView Realtime plot of Sensor Data

I am using GraphView Android Library to plot the data of Light Sensor of my Smartphone. The Y-values of the resulting Graph are correct but the Graph cannot plot the floating point values of the X-axis which is the time in milliseconds at which it…
Marry35
  • 387
  • 4
  • 16
1
vote
1 answer

How to set fixed horizontal labels on the X axis in graphview (Android Studio)

I'm using GraphView library and I would like to display the months of the year on the X axis . my problem is that the labels are overlapping on "portrait" mode. it looks better on "landscape" mode, although the are overlapping labels also. that is…
liav bahar
  • 237
  • 3
  • 7
  • 13
1
vote
1 answer

Graph in a listview

I want to implement a graph as below for each item of a listview. The cell will turn green or red based upon the input. The number of coloured cells will increase based upon the input. Could you please tell me what would be the best approach in…
1
vote
1 answer

How to customize grid ratio in graphview?

I have used GraphView 3.0 library for my ECG analysis project on Android. I cant find any option to customize grids ratio or you can say step size for x and y axis. If I need to edit the source code then also let me know how am I supposed to edit…
1
vote
3 answers

How to send values to two different activities at the same time

I am working on a budget app and am having trouble getting my expenses to the class that will create a graph. The user will be able to input an expense along with a check box indicating what they spent money on. When I send the value to…
sam1319
  • 201
  • 1
  • 6
  • 16
1
vote
0 answers

Android GraphView Memory Usage For Large Data Set

I am relatively new at Android (to give context to my skill level). Summary (Question stated at the bottom): My app uses a lot of CPU (sounds basic, sorry) and I think it is because I'm using 3000 datapoints. Context: I am making an app that takes…
1
vote
1 answer

How to draw dotted line between axis on Bar graph android

I am using achartengine jar for Bar graph view. My requirement of Bar Graph design example diagram has attached below. The top Image is My requiremnt bar graph The Bottom Image is my output image. My code is: public class TestClass extends…
karthik
  • 321
  • 1
  • 8
  • 21
1
vote
1 answer

Android GraphView: setMinX(0) not working and produces negative x axis values

I have been trying to use the GraphView library in my Android project to plot a few points based on the x axis being time. To do this, I wanted to constrain my x axis form 0 to 60 (representing seconds). I did this using the following code: …
redlime9
  • 53
  • 1
  • 10
1
vote
1 answer

How to replace the numbers on the bottom of Bar GraphView with strings?

I'm using jjoe64 GraphView library for creating a bar GraphView in my app. When I'm creating a new DataPoint, it requires 2 values: X int, and a Y int, like this: GraphView graph = (GraphView) findViewById(R.id.graph); BarGraphSeries
Ido Naveh
  • 2,442
  • 3
  • 26
  • 57
1
vote
2 answers

Unable to generate datapoint series for android graph view line graph

I am trying to add multiple data series to an android graph view linegraph - I am using the example from the real-time example as follows: private DataPoint[] generateData() { int count = 30; DataPoint[] values = new…
Tech
  • 156
  • 1
  • 14
1
vote
1 answer

android Graphview graph starting from right side of viewport

I am building an application in which a live graph is plotted from some random readings. I am using android Graphview library for plotting the data points by adding compile 'com.jjoe64:graphview:4.0.0' to the build.gradel. Every thing is working…
1
vote
0 answers

Make a "Device's Temperature Live Graph"

I'm making a Device's Temperature Live Graph. But the temperature in the graph is always 0 (I do have BATTERY_STATS permission). private final Handler mHandler = new Handler(); private Runnable mTimer1; private Runnable mTimer2; private…