Skip to main content

All Questions

Tagged with
0 votes
2 answers
378 views

In the MPAndroidChart, how do you set the labels on the x-axis (time) with a fixed interval?

I've been trying for a week different things I found on SO, including setting the granularity and the axis min and max values. Look at how neatly distributed the values on the y-axis are, the interval ...
Anon's user avatar
  • 45
0 votes
1 answer
223 views

How to add different colors setCircleColorHole in line graph of MPAndroidChart android?

There are method to add single circle hole color in the graph for all points. setCircleHoleColor(Color.RED); I am adding multiple circle colors using setCircleColors in LineDataSet like this : ...
Dhvani023's user avatar
  • 1,137
1 vote
0 answers
154 views

how to pass data from string type to integer to make line chart using mpandroidchart

I am making an app in android studio with java in which I want to make a line graph with the mpchart android library. The data that I want to represent in my graph is obtained by reading a sqlite ...
wuad's user avatar
  • 31
0 votes
1 answer
88 views

Show a Min Max Text in a MPGraph in Android

I am trying to show a min max values in a MP graph, so I have drawn a circles in a line graph. I want to show a Text as Min and Max at that point. How should I achieve it in android. As shown in ...
Bhanu Nautiyal's user avatar
1 vote
0 answers
228 views

How to customize XYPlot properties - add X & Y axis labels and change legend text size?

What I tried: I'm using XYPlot for my dynamic graph and it is working well. I tried to customize it inside my initplot() function. I tried using getLegendWidget(), getDomainLabelWidget() and ...
Sachz's user avatar
  • 401
1 vote
0 answers
770 views

line graph like google weather graph

I have UI requirement with ling graph, the graph will be have icons above xaxis just like google weather app UI. Following image is reference. Like above image wee need to display icons for the ...
YBDevi's user avatar
  • 479
1 vote
0 answers
111 views

PhilJay MPAndroidChart Line Graph Displayed Wrong

Summary The graph does not match with the target. Expected Behavior The data displayed should be reflected correctly by the graph. Device (please complete the following information): Device: ...
Raymond Barrinuevo's user avatar
-1 votes
2 answers
411 views

Firestore Document values in Android Line Graph

I have a collection named PuckData where I store some int values(temperature, light) and timestamp. I would like to display those values in line graphs with Android Graph Library(jjoe64). The first ...
diamond's user avatar
  • 13
12 votes
1 answer
8k views

MPAndroidChart define exact/fixed interval between values on x-axis (time)

I'm using in the app MPAndroidChart library and I have line graph like this now: On X axis I have seconds and I want to have the same interval between values on X axis. Now I have 19:03 and 19:20 but ...
Pepa Zapletal's user avatar
0 votes
2 answers
611 views

How to set yaxis values in center of xaxis labels in line chart?

I am a bit new to MPAndroidChart library and I am going to make a line chart for my data. I intend to set yaxis values exactly in the center of each grid rectangle which is inside them. How that ...
davood yazdipoor's user avatar
1 vote
1 answer
1k views

Android Graph View auto scrollable Line Graph

I have created a line graph using Grap View and I am able to scroll it manually right and left but I am unable to set it to scroll automatically. So far I haven't found any thread in which someone ...
Richard's user avatar
  • 1,117
-1 votes
1 answer
203 views

How to break graphview datapoint to get value of Y axis only?

I want to break the dataPoint to get only values of Y axis. right now the result i get when my code runs is : Diastolic Reading: [25.0/89.0] mmHg however i want to display it as: Diastolic Reading: ...
Pohur's user avatar
  • 5
0 votes
2 answers
3k views

MPAndroidChart line graph remove only top border android

I am using MPAndroidChart for line graph. I have some 5 points. Below is my code. LineChart lineChart = (LineChart) findViewById(R.id.chart); lineChart.setDrawBorders(true); lineChart....
madhuri H R's user avatar
1 vote
1 answer
635 views

GraphView For loop not plotting data

I'm working on an app that parses through an XML file, collects dates and values, and plots this data with GraphView using a for loop that loops through and array list of data points. I can get the ...
ThePInPneumonia's user avatar
8 votes
3 answers
5k views

How to not draw zero values on a linechart while showing their X axis values on MPAndroidChart?

I'm using MPAndroidChart to display my data in a line graph. For each date I have its own value. This works just fine. What I want to do now is to not draw the 0 values, but instead draw the line ...
limlim's user avatar
  • 3,155

15 30 50 per page