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
0
votes
1 answer

Loading data from database into a Datapoint[]

I'm trying to import data into the LineGraphSeries but i'm having problems doing it. I want to create a graphic (not with real time modifications) with the data inserted into the SQLite database, and i wrote the following code to do it. Since i'm…
0
votes
1 answer

Android GraphView, to add X and Y coordinates, to a graph, using EditTextView

So, I am making a graphing app(Line Graph), using android GraphView. What I did: Create a graph view Create 2 text views(Edit text views that only take numbers), for x and y coordinates A button that adds the point(x and y coordinates) to the graph…
0
votes
1 answer

Extract an array in an nested array Java

I have the following code: DataPoint dbPoint[] = new DataPoint[] { new DataPoint(0, 1), new DataPoint(1, 5), new DataPoint(2, 3), new DataPoint(3, 2), new DataPoint(4,…
0
votes
1 answer

Android GraphView make only x axes horizontal scroll

I'm using graphView library to draw a line graph in my android app. Since my x axes has more data, I want to make it horizontal scrollable, so that datas will not overlap with each other on smaller devices. So far I tried to add a…
余芳君
  • 45
  • 1
  • 6
0
votes
1 answer

how to use graph view to represent sqlite data?

i have a graph view to implement an analysis graph All the x-axis and y-axis data is get from the sqlite db data to show the output x-axis is showing date y-axis is showing weight but I have no idea to implement them out, I am stuck, below is my…
Wg Sam
  • 61
  • 1
  • 2
  • 11
0
votes
1 answer

How implement my sqlite data in a GraphView?

I have my method to retrieve data from sqlite data using rawQuery. But now I don't know how to put it in the graph view,( for ex: all date and all weight column) put in the graphview Here is the code to retrieve data DBHelperNote connect = new…
Wg Sam
  • 61
  • 1
  • 2
  • 11
0
votes
1 answer

Android GraphView: Curved Lines to Connect Points

In my application, I have been wanting to curve the lines connecting my datapoints using the GraphView library to give it a parabolic look. Currently, they are all sharp straight lines. Is there any method in the GraphView library that allows…
redlime9
  • 53
  • 1
  • 10
0
votes
1 answer

Android Graph View Update

As a Java & Android beginner I find it still hard to understand most documentations, but I think this can be solved easily by someone who knows what they are doing: I'm using Graph View for Android Studio to build a simple graph. This is working…
olop01
  • 273
  • 3
  • 18
0
votes
1 answer

Displaying live graph in google glass

I'm searching for a way to display live data in a graph using google glass. According to "supported google APIs" there are no APIs currently supporting this feature. I have also taken a look at the android graphview API but without any luck. Are…
seb
  • 53
  • 1
  • 9
0
votes
1 answer

GraphView format label discard some digits for very big data

I am using graphview library and trying to format label of graph to time in 'HH' format from millisecond. I give each x value of datapoint in series as millisecond which is really big like '1.442440833138E12'. And after that i make my custom…
강신욱
  • 131
  • 1
  • 7
0
votes
1 answer

Displaying realtime data in a textview element

I am using graphview library in my android application to plot real time data coming from a sensor. I already have the graph, but I want to display the current value plotted in the graph also in a textview. Here is the code I used for plotting the…
ThoKun
  • 67
  • 9
0
votes
1 answer

Android GraphView doesn't show series title

I implemented a graphview in my application that has 4 lineseries, but my graphview doesn't show series title in my chart, how could I fix that? thanks in advance
ali mardani
  • 335
  • 1
  • 5
  • 13
0
votes
1 answer

Android GraphView: match static label to data

Hi, I am trying to match the data bars to their correct label. As you can see the first pair of pink/blue bars should be Q1, then Q2, Q3, Q4, and Total. Basically I'm looking for a way to match the static labels to the x-values in dataPoints.
NicXen
  • 133
  • 1
  • 5
0
votes
0 answers

Real-time update of MPAndroidChart graph from bluetooth data

I am trying to plot data received from Bluetooth with real-time with MPAndroidChart library. I believe there is problem with thread deadlocks but I cannot figure it out exactly. Here is how the code goes: After connection is established, when "Read"…
0
votes
2 answers

android graph view not shown when the data is the same

I'm using android graph view from here it works fine , but when the Y value of data are the same it doesn't show any thing more like the whole View visibility is GONE. I can handle this by appending a fake value to the data point but it doesn't…
soha1410
  • 555
  • 5
  • 14