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

X and Y label does not show with GraphView inside a fragment

The problem is pretty clear: the informations about X/Y are showed in activity but not in a fragment... In the activity the graph is drawn and information about X and Y and the title of the graphe are showed. In the fragment, only the graphe is…
user2121458
  • 143
  • 1
  • 4
  • 15
3
votes
3 answers

AndroidPlot - Remove domain values from GraphWidget

I have a plot setup like this: aHistoryPlot = (XYPlot) findViewById(R.id.plot); aHistoryPlot.setRangeBoundaries(0, 255, BoundaryMode.FIXED); aHistoryPlot.setDomainBoundaries(0, HISTORY_SIZE, BoundaryMode.FIXED); …
amp
  • 11,754
  • 18
  • 77
  • 133
3
votes
3 answers

Why does not AsyncTask automatically update GraphView after append new data?

My main Thread extends from Activity, it starts two asynchronous tasks that gather data from different UDP sources. One of this tasks should append the data to this graph drawing library. I am making updates on the UI from the onPostExecute section…
Hauke S.
  • 43
  • 5
2
votes
1 answer

Flutter InteractiveViewer child not clickable when panning out of view

I'm quite new to flutter and dart. I'm trying to draw a tree view using the GraphView library. I'm able to generate the tree and also the panning is working very well. The main problem is that tree nodes have to be clickable, but once the tree…
2
votes
0 answers

Trying to create real time GraphView Line and getting java.util.ConcurrentModificationException

I'm trying to make a graph in real time, but I get a java.util.ConcurrentModificationException error. If you set a high delay thread.sleep(500), then the chart will fill correctly, but if you set thread.sleep(100) or less, you always get an error…
2
votes
0 answers

How to sort data from Firebase realtime database?

I'm using GraphView library. My code below gets data from Firebase real-time database and updates the graph with values from database, but it isn't sorted. I need it to be sorted in ascending order in X axis. The data in X axis is Long type, then…
2
votes
0 answers

Android GraphView static label repeats when X-axis is manually set

I'm plotting values by hour in my application and instead of the horizontal x-axis labels showing as just "0", "5", "10" (for hour 0, hour 5, hour 10, etc.), I wanted to customize the labels with the actual time of day (i.e. "12AM" for "0", "5AM"…
wnjl
  • 162
  • 1
  • 10
2
votes
0 answers

Update graphview daily automatically

I want to create a graph that will update daily graphe (each day append new data). I tried something like this: Calendar calendar = Calendar.getInstance(); int day = calendar.get(Calendar.DAY_OF_WEEK); @Override protected void…
omar frj
  • 21
  • 1
2
votes
0 answers

Dynamically adding and removing data from Graphview

I am using graphview to dynamically create graphs which add new datapoints constantly. But I don't want to store more than 100 datapoints at a single time. So I need to remove datapoints while adding new ones. However, it seems graphview has a…
lionheart
  • 333
  • 2
  • 11
2
votes
0 answers

Bar graph X axis labels disappeared after Shunting the viewport to show the full width of bars

In my android code, I am creating a bar graph with x axis labeled with dates (String), and y axis being double values. Everything was fine, but when I had to Shunt the viewport to show the full width of the first and last bars, the dates disappeared…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
2
votes
1 answer

Graph library to draw An electronic truck logbook data

I need to draw a graph like below image I know I can draw this with line chart but I need that frame. Each slot is divided into 4 another small slot just like Meter Scale. Actually, I need the background grid like this image graph or like meter…
Abu Yousuf
  • 5,729
  • 3
  • 31
  • 50
2
votes
0 answers

How to correctly update GraphView object within Fragment (GraphView is not updating with incoming data)

I'm working on a project where I collect 4 categories of sensor data via bluetooth low energy and display this data within a tabbed swipe view in individual fragments. Currently I have the BLE functionality fully working, and am receiving values as…
2
votes
0 answers

Horizontal Label problem with GraphView while scrolling

I am facing some weird problems with my (Line) GraphView! To explain it a bit better I'll add a pic that shows what happens when I start scrolling horizontal (vertical scrolling is not needed). The thing is: The DataPoints are displayed correctly,…
2
votes
0 answers

Unable to resolve dependency for graph view-4.2.2 from mavenCentral

the error i'm getting is: error: Unable to resolve dependency for 'app@debug/compileClasspath':Could not resolve com.jjoe64:graphview:4.2.2 I'm trying to integrate graphview into my android application and am following the documentation provided…
2
votes
1 answer

How to add specific points in a GraphView Android?

I want to add specific points on GraphView that look like this: This is what I have tried: GraphView graphView =…
Johans Bormman
  • 855
  • 2
  • 11
  • 23