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

GraphView For loop not plotting data

I'm working on an app that parses through an XML file, collects dates and values, and plots this data with GraphView using a for loop that loops through and array list of data points. I can get the graph to generate the x and y axis with the dates…
1
vote
0 answers

How to update graphview data in android

I need to update my graphview data continuously receiving through bluetooth, i am using com.jjoe64.graphview.GraphView ,I called Bluetooth connection, data communication logics in a Service class to maintain bluetooth connection throughout the…
Annie
  • 160
  • 1
  • 2
  • 15
1
vote
0 answers

GraphView drawing only specific axis labels at specific points

I'm using graph view to draw an inputted quadratic function. I'd like to only include numbers on the axes where the curve intercepts them. Here is my code: private GraphView graph; protected void Solve(View view) { graph = (GraphView)…
Tom Luther
  • 11
  • 5
1
vote
1 answer

Graphview library not displaying y-axis properly with human rounding set to false

I am using a graphview library from github, simply named Graphview. I have dates as x-axis and weight in kg as y-axis. The graph is set up in a fragment. You can add new graphs to the graphview by entering the name of the graph in an…
Jbot
  • 11
  • 5
1
vote
1 answer

Android GraphView multiple series show/hide particular linegraph on touch

I am using GraphView for Android with multiple series to show 2 graphs. Is it even a possibility to show/hide one of the graphs on touch, because I couldn't find any documentation on the website? Here is the source code: graph = (GraphView)…
Ademir Gotov
  • 179
  • 1
  • 14
1
vote
1 answer

java.util.ConcurrentModificationException in Android-GraphView

I am trying to use 2 graph view to display accelerometer and gyrosope data. The graph works but I get the following error which occurs at random. java.util.ConcurrentModificationException at…
xSooDx
  • 493
  • 1
  • 5
  • 19
1
vote
2 answers

GraphView horizontal axis labels padding

I'm using GraphView library to create graph on my android application and I having problem with my horizontal (X) axis labels. As you can see here there is problem with the numbers labels in the X axis, the numbers are hovering each other and I'm…
Yotam Dahan
  • 689
  • 1
  • 9
  • 33
1
vote
0 answers

NoClassDefFoundError mapsforge - Android studio?

I am using from mapforgs but when I run app get me bellow error : java.lang.NoClassDefFoundError: org.mapsforge.map.android.view.MapView at com.example.asheq.locationappandroid_1.MapOfflineActivity.onCreate(MapOfflineActivity.java:69) at…
user4813855
1
vote
0 answers

Cannot resolve constructor (GraphView)

I am using Android Studio and I am trying to create a simple line chart using GraphView library. However, I am now currently facing an error called Cannot resolve constructor "DataPoint(java.lang.String, java.lang.String) I created two ArrayList…
Arane
  • 323
  • 4
  • 19
1
vote
0 answers

Difficulty Plotting Periodic Function with Android GraphView Library

I'm trying to construct a graph that represents a set impulse delta functions by creating a set of line segments with the following code: series.appendData(new DataPoint(0,0), true, 30); series.appendData(new DataPoint(0,1), true, 30); …
user2254532
  • 1,851
  • 2
  • 14
  • 14
1
vote
1 answer

Difficulty in making Date as X axis using GraphView in Android

I am getting x and y values from a JSON and creating graph using GraphView. How to implement X-axis as Dates.I am sharing my code, please see what is the mistake? Here's my code : import android.graphics.Color; import…
garima
  • 5,154
  • 11
  • 46
  • 77
1
vote
3 answers

Android Movable Line Chart

I want to implement draggable line chart for android. • This is exactly i want to I have referred many charts library like mpandroid, android-plot, hz-graphview among all line charts are static. P.S I'm not asking anyone to implement this all i…
Aks4125
  • 4,522
  • 4
  • 32
  • 48
1
vote
0 answers

Android GraphView - HSV color instead of RGB

I've tried to make a colored bar Chart. The Color depends on the Y-Value. mSeriesBarGraph.setValueDependentColor(new ValueDependentColor() { @Override public int get(DataPoint data) { maxVAL = 65535; int n =…
1
vote
2 answers

Graphview not showing all x axis values

See picture below, trying to figure out why they it is skipping the '1', '3', and so forth. Where i set the series and graph: DataPoint[] dataPoints = new DataPoint[rankList.size()]; // declare an array of DataPoint objects with the same size as…
AndroidDev21921
  • 695
  • 1
  • 8
  • 21
1
vote
1 answer

Android graphview x values lower than previous values

i want to draw x,y plot using android GraphView library, when i try this series i got and error, please help why that graph cant be draw my series and code like this : double[] series1Numbers = {0.07, 0.066, 0.069, 0.077, 0.090, 0.106, 0.123,…
montblanc
  • 13
  • 7