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
0 answers

How to have fixed number of labels at specific point on the screen using graphview?

I am plotting real time data using Graphview library in android studio. I need to have just 3 labels which are date values as the x axis. Using graphView.getGridLabelRenderer().setNumHorizontalLabels(3) sets it correctly to 3 at the beginning of the…
kjoy
  • 11
  • 2
1
vote
1 answer

How to display date from SQLite db as X-axis in GraphView of another activity, from showing only 1-1-1970?

I build an app that does some calculations in MainActivity.java and stores the results in SQLite database. When the user presses a button, opens the GraphActivity.java with the corresponding GraphView. Maybe it is because I don't have so much…
1
vote
0 answers

Android GraphView - How to use separate LabelFormatter?

I'm using Android GraphView. I want to use DateAsXAxisLabelFormatter for x-axis, and a custom LabelFormatter for y-axis. Otherwise the y-axis labels gets cut off. See this: android graph-view y axis numbers being cut out If I use static padding as…
Nikhil Wagh
  • 1,376
  • 1
  • 24
  • 44
1
vote
1 answer

How to add data from firebase to graphview dynamically?

I am using jjoe64.graphview.GraphView library for plotting graph. I am appending some data from firebase database but it is showing me error. here is my code: FirebaseDatabase realdata = FirebaseDatabase.getInstance(); DatabaseReference…
1
vote
1 answer

Graphview not graphing

I'm using the graphView library to graph data coming in from another activity in real time. Although the data comes in and no errors occur, but for some reason the data doesn't show up on the graph. I am trying to just graph the x data for now. Any…
1
vote
1 answer

GraphView not sizing properly

I'm using Graph View to plot my bar graphs in the app I'm developing and everything is working fine in portrait mode. However,when changed to landscape, the graphs's labels get out of line with the data points as shown in the pictures…
Rajdeep
  • 2,246
  • 6
  • 24
  • 51
1
vote
1 answer

In "graphView" labels does not start from the origin

I create 60 DataPoint (for every minute in hour) and show them on the graph. Set 7 labels for x axis. Labels with date. The leftmost label and the rightmost label do not coincide with the beginning and end of the x axis. This screenshot shows…
Ilya Mashin
  • 904
  • 1
  • 12
  • 28
1
vote
1 answer

GraphView date labels are jumpy when scrolling horizontally

Look at the date labels in the GIF. When a DataPoint is scrolled off screen its respective label also jumps off screen EVEN if they are much wider. But the worst problem is that even other labels, of other DataPoints, jump and change their…
1
vote
1 answer
1
vote
0 answers

How to plot graph using GraphView after making a network call?

I'm using GraphView,(refer this) to plot the graph. Below is the activity I'm doing a network call using Volley, where I'm getting the information to plot the graph. Currently, I'm using a test data to plot the graph. Look for my comments "Here It…
Sambit Mallick
  • 155
  • 4
  • 14
1
vote
1 answer

Graphview library is 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 prices on the y-axis. I get the data from an api but when I set human rounding to false the y-axis goes crazy and adds way to many values: Picture of it…
1
vote
0 answers

Graph Data Overlaps Axes labels When Scrolling

When enabling scrolling and/or scaling, the data on the graph overlaps the y-axes of the graph. The y-axis labels can be covered and the data can spill out the right hand side too. Is there a method to fix this? Code: // min and max are the first…
McGuile
  • 818
  • 1
  • 11
  • 29
1
vote
0 answers

How to use GraphView library to draw with stringbuilder value?

I have a fragment (Fragment2) that receives temperature value from other devices with Bluetooth. I want to draw real time graph of temperature vs time. Temperature values are stored in form of StringBuilder. Ex-: {temp[0]=20,…
CKocar
  • 566
  • 9
  • 25
1
vote
0 answers

GraphView on Android draw string data

I have a temperature value from the Bluetooth device. StringBuilder [] temp = new StringBuilder[1000]; it is not empty, it includes temperature value, for example, temp[1]=20, temp[2]=30 like this. But every one second this array change with news…
CKocar
  • 566
  • 9
  • 25
1
vote
0 answers

Android/Kotlin/GraphView - auto increment the value of x coordinate and also,not showing the labels on X Axis

I am creating an app using Kotlin in which I have to plot a graph using certain value which are gathered at different points of time. Now, I want my code to automatically increase the value of x-coordinate of the graphview while I pass ony the value…