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

How to customize x-axis in GraphView in android

I am trying to draw a line graph using GraphView in android. I am able to print labels in the y axis, but the labels in the x-axis don't get displayed, also the points are not plotted correctly with respect to the x-axis. Can someone please…
qualitytest
  • 763
  • 1
  • 10
  • 18
2
votes
0 answers

Error: cannot find symbol class GraphViewSeries

I'm trying to draw a simple graph using GraphView but getting compilation error: "cannot find symbol class GraphViewSeries". I also tried to add "import com.jjoe64.graphview.GraphViewSeries;" but getting same error. Please help in resolving this…
2
votes
1 answer

Android Graphview Using Dates and Decimals as axis

Basically I need to use the Graphview Api (http://www.android-graphview.org/documentation/line-graph-series-in-detail#comments) to plot some data from my highscores. So far I can create a line graph that contains data hardcoded in, like so: …
Rhys Drury
  • 305
  • 2
  • 20
2
votes
1 answer

How to implement graph view in android studio using GraphView Library

I want Show a graph exactly like this. I am using GraphView Library version 4.x. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
Noufal M
  • 163
  • 1
  • 4
  • 12
2
votes
2 answers

Android GraphView project get freeze with real time updates

I am trying to incorporate Android GraphView project into my app and all the time I have some strange problem with it. My app requires drawing graph from real time data. I have thread with all the communication that is providing the data. In main…
sebap123
  • 2,541
  • 6
  • 45
  • 81
2
votes
0 answers

Graphview SetBackgroundColor issue when using two Y Axis

i'm wrapping this library so that it can be used with a platform called Basic4Android, so far everything works as expected, except that i'm having an issue setting the graphs background color when using two Y axis, has anyone seen this issue or is…
2
votes
2 answers

Plotting Graph from Json Data using GraphView Library android

Hi I have written a json parser to pull some data in an array like this "records": [ [ "2015-01-11 04:50", 1.5 ], [ "2015-01-11 05:00", …
Cockpit Aliens
  • 411
  • 6
  • 18
2
votes
1 answer

Creating Real-Time Graphs in Android App for Bluetooth Pulse Rate Sensor

I'm currently developing an Android Application which connects via Bluetooth Low Energy to an Arduino which has the nRF8001 Bluetooth Low Energy Module with a connect the SEN-11574 Pulse Rate Sensor available at Spark Fun (…
stefbmt
  • 111
  • 1
  • 2
  • 14
2
votes
1 answer

Show detail on hover or click on bar of Graph View Android

Trying to show value of label on hover of bar in Graph View. There is a method called setOnHoverListener(new View.OnHoverListener() { @Override public boolean onHover(View v, MotionEvent event) { switch (event.getAction()) { …
Yuvraj Kakkar
  • 1,123
  • 1
  • 11
  • 24
2
votes
2 answers

How to redraw correctly bargraphview using the graph view library for Android?

For some reason (that I can develop if you want/need) I have to redraw all the chart periodically. So, I use removeAllSeries then addSeries, plus removeAllViews then addView. It works but the problem is that addView adds the view not by simply…
rBenks93
  • 53
  • 1
  • 8
2
votes
1 answer

Set the background color of a GraphView

I am attempting to set the background color of a GraphView (http://android-graphview.org). I looked at the following StackOverflow question: https://stackoverflow.com/questions/24276370/changing-graphview-background-not-working but there was no…
Perry Hoekstra
  • 2,687
  • 3
  • 33
  • 52
2
votes
2 answers

GraphView always start on zero, and dynamically data

How can I make my GraphView always start on zero and not on the lowest number of my data ? For example if my data received is {10,44,1,15}, the bottom one will be the 1 and I wanted to be zero. How can I do that ? And how can I make the…
SnakeSheet
  • 151
  • 2
  • 10
2
votes
3 answers

Making Concentric Pie Chart in Android

Today I am come across a problem in Drawing out Graph in Android Pro-grammatically. I am Using Achartengine graph library for achieving this , I have done with simple pie chart , But I have no clue how to make Concentric pie chart using this . Here…
GOLDEE
  • 2,318
  • 3
  • 25
  • 49
2
votes
0 answers

Android GraphView resetData only updating the axis values not the graph itself

Hi I am currently having some real difficulty with the graphview library. I am trying to get the graph to update via a call from a broadcast receiver in the activity. But for some reason it only updates the values on the x and y axis. But not the…
2
votes
2 answers

GraphView and resetData

please help me, I use the GraphView library (http://www.jjoe64.com/p/graphview-library.html), it works. But i don't understand how to reset previous data. Method redrawAll() does not work. IT'S MY CODE: public class MainActivity extends Activity…
user1904376
  • 21
  • 1
  • 1
  • 4