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

GraphView shows wrong graph in real time mode when scrollToEnd is true

I'm sampling accelerometer sensor and present a graph in real time, using Graph View library (4.0.1). The app is working well except the graph is wrong: As you can see in the picture, Z axis (magenta color) has value of ~9.8 but in the graph it's…
AsfK
  • 3,328
  • 4
  • 36
  • 73
3
votes
4 answers

Difficulty in understanding complex multi threading in Android app

I have big problem with understanding multi threading in my application and because of that finding a bug. I've checked I think all possibilities and still I am getting various (sometimes unexpected) errors. Maybe someone here will be able to advice…
3
votes
4 answers

How to send data from activity to the fragment for update a graph?

public class GraphUpdate extends Fragment { private final Handler mHandler = new Handler(); private Runnable mTimer; private LineGraphSeries mSeries; private double graph2LastXValue = 5d; private int value; private…
3
votes
2 answers

How to make a horizontal bar chart using gradient color in android

I've attached a screenshot. As per the screenshot I want to make the horizontal bar chart graph to my activity same as the snapshot. I've done half of it's contents using MP Chart Library. I can't add the x axis values starting from 3 to 9. Also not…
Parth Bhayani
  • 1,894
  • 3
  • 17
  • 35
3
votes
2 answers

Trying to add date in axis X - GraphView for android

I need some help, I want to show in my GraphView date by DD/MM/YYYY in axis x. And in the y axis number(Integer)... how can I add the date to the axis X it only get int. (I use this library http://android-graphview.org/ )
Avivhadsa
  • 45
  • 1
  • 4
3
votes
1 answer

GarphView not working, blank activity

I have implemented GraphView in my Main activity class dynamically. Not result is shown in it. The activity remains blank when launched. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
3
votes
1 answer

How to auto scroll MPAndroidChart line chart?

I am new user of MPAndroidChart in android. can any one help me ?
Nirav Alagiya
  • 721
  • 1
  • 5
  • 19
3
votes
2 answers

Android GraphView - how to fill area under the Line Graph with color?

I have created a LineGraph, it´s look like this: But I want fill the area below the grap like this: How can I implement this feature? Can you help me?
Pepa Zapletal
  • 2,879
  • 3
  • 39
  • 69
3
votes
0 answers

Issue with aligning bars with x axis and making the bar width fit to a range

I'm trying to create a Bar chart using GraphView to display a count against ranges. The way I input data is GraphViewData(1, 0), GraphViewData(2, 5),GraphViewData(3, 7) and likewise. However each of these x values represents a range as 0 to 1, 1 to…
3
votes
1 answer

Graphview horizontal labels not scrolling

I am working on project which requires graph drawing. I have used this Library. Its working perfectly only problem i am facing is that, the horizontal labels are not scrolling.This X-axis labels are always fixed. Whereas vertical labels are…
vish
  • 45
  • 1
  • 8
3
votes
1 answer

GraphView vertical labels increment in integer from 0

Currently, the code below displays the attached bar graph, with a scale that includes decimals and starts at 2. My question is: Is there a way to start the y-axis labels from 0, and increase in integers up to the maximum value of the data? For…
otherdan
  • 71
  • 1
  • 8
3
votes
3 answers

Android: GraphView How do I implement time in the X axis?

I'm finding it a bit difficult to figure out how to implement time in the X Axis of a graph in Android? This is my code: for (int i = 0; i < listSize; i++) { String[] onlyReading = mData.get(i).getReading().split(" "); …
Hick
  • 35,524
  • 46
  • 151
  • 243
3
votes
1 answer

Spacing between bars in Bar Graph in Android using GraphView Library

I am using GraphView Lib for generating runtime Bar graph What i have achieved is in Snap1-- Whereas what i required is in ReqSnap1- ReqSnap2-- Any help would be great Thanks in advance
Irshad A Khan
  • 141
  • 1
  • 11
3
votes
1 answer

Android graph view

I have used jjoe64's graphview library to implement graph in my app. It has pretty good samples inside the box and started right away to include it in my app. Wat i have got so far is as shown below. But what i actually need is as shown below, I…
suresh cheemalamudi
  • 6,190
  • 11
  • 49
  • 67
3
votes
1 answer

How to plot a graph with Time in x-axis and value on the other in android?

I want to plot a Time vs value graph where time (in hours) is on the x-axis and the Values should be on the y-axis. Is there any library to do this? I tried using achartengine…
Sparkplug
  • 485
  • 7
  • 21
1 2
3
30 31