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

Custom Bar Graph view in android

I want to show custom graph view with horizontal & vertical scroll in view something like this. no of columns are dynamic according no of events for particular time. no of rows are fixed. how to achieve this view in android? and also required the…
4
votes
1 answer

Android-GraphView with custom horizontal lable doesnt display properly

I tried to make graph, where x-axis contains dates as a string.So I use customLabelFormatter it gives me all dates of one year around 365 dates. Now,the problem is x-axis show all dates but in very conjugated space so it looks like a straight…
Nikhil Sathawara
  • 161
  • 1
  • 2
  • 8
4
votes
2 answers

android line graph using graph view library

I am using some android library which is in the link .. https://github.com/jjoe64/GraphView-Demos .. I tried with the realtime graph example , https://github.com/jjoe64/GraphView-Demos/blob/master/src/com/jjoe64/graphviewdemos/RealtimeGraph.java ...…
indra
  • 832
  • 4
  • 17
  • 33
4
votes
0 answers

Hours of Service in Android - Step Chart

Here I am trying to implement this kind of Step Line Graph in Android but not able to find better option for how to generate that graph. I look some links which is similar I want. I am newbie in Android for Graphs/Charts Library. Graph Image -…
PrSI
  • 41
  • 4
4
votes
1 answer

How to do auto Pan (scrolling) with AChartEngine dynamic line graph along with X-axis?

I had created dynamic line graph using AChartEngine Api, which shows the changes in G-Force value. All works fine but when graph moves ahead in X-axis i have to manually scroll in X-axis to see it further, please check my image below if you are not…
Nirav Dangi
  • 3,607
  • 4
  • 49
  • 60
3
votes
0 answers

TabLayout or DatePicker - Switching Tab doesn't update, same with DatePicker

I've written a small Android app which'll collect data from a JSON API, displays a graph from that data and calculates the total of the data in the graph (the data is the output of a PV installation). The app uses a TabLayout to display graphs for…
BlueCacti
  • 9,729
  • 3
  • 20
  • 24
3
votes
0 answers

Adding changing values to a graphview

I am attempting to analyze an array of bitmaps and follow the position of the brightest spot through each of the bitmaps. After analyzing each bitmap, I want to find the x and y position of the brightest(which I just set to be the average of the RGB…
3
votes
0 answers

How to add static data and then in real-time in GraphView in Android?

I need to add data from a array and then add data in real time. I can do the 2 things separately, but when I want to do everything together, the application closes before it starts. The idea is to show data that I receive through Bluetooth and as I…
3
votes
1 answer

Dotted dash line in GraphView

I want a dotted line, as described in the official documentation: futureSeries.setDrawDataPoints(true); Paint paint = new Paint(); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(10); paint.setPathEffect(new…
Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
3
votes
1 answer

Displaying graphview in fragment only shows data after restart of the application

Hello i have come to an obstacle in my code. I am saving some data to sqlite, then reading this data and displaying it on the graph. The graph works fine as does the saving. I have fragment tabs for easy swiping. Now when i save data i want to…
user7875739
3
votes
2 answers

GraphView Android, How to change thickness of original x-axis and y-axis?

I am using the GraphView library for drawing graphs in an Android app and I am very pleased with the library so far. I am using it in a fixed frame realtime scenario and have noticed that the x-axis and y-axis grid lines are thicker thatn the other…
svahidhoss
  • 333
  • 2
  • 11
3
votes
0 answers

android: GraphView cropped/incomplete legend

When I try to setup a LineGraph containing day/value pairs. The legend gets cropped on the right side. Ie the last ~3 values are shown in the graph but have no entries in the legend. Is this a bug in the library or am I missing something? Below is a…
user2912328
  • 171
  • 10
3
votes
0 answers

background color only between line graph (GraphView)

Library: graphview Version: 4.2.1 Is it possible to set background color between two curves? Like this: setDrawBackground changes color between curve and coordinate line, it isn't what I need: Code for exaple: LineGraphSeries
3
votes
4 answers

MpAndroidChart set background between limit lines

I a using MpAndroidChart library. I need to implement a design where I need to color the area between two limit lines. I have attached an image for reference. I have tried multiple ways but I have failed to achieve it. I am using this library for…
Anudeep
  • 1,520
  • 1
  • 19
  • 38
3
votes
1 answer

Android/Java creating a helper class to create graphs

Goal: To create a helper class for graph generation Background: I have 3 fragments that each collect some sensor data (accelerometer, gyroscope, rotation) and plots a graph using GraphView. Here is what the code looks like for one of those fragments…
Simon
  • 9,762
  • 15
  • 62
  • 119
1
2
3
30 31