Comments (116)
Within the next few weeks v3.0.0 of this library with major changes will be released which is finally going to close this issue, stay tuned :-)
from mpandroidchart.
I am looking for an android equivalent to to vis.js graph2d http://visjs.org/graph2d_examples.html
from mpandroidchart.
+1
I was really impressed with the capabilities of MPAndroidChart but since it's not possible to enter data as (x,y) pairs I can't use it. My application has real-time time-series data with irregular/unpredictable time coordinates for each measurement.
from mpandroidchart.
+1
this is unfortunately a blocking issue for using this great library for our project.
We would definitively donate a good amount if we could use this library.
from mpandroidchart.
Yes, & the latest release.
from mpandroidchart.
You are absolutely right, that is kind of a drawback. I work on providing a solution for this issue as fast as possible.
Nevertheless, the charts displayed in your link are already possible (quite likely with some additional but manageable effort).
As a description for the x-axis, you can provide an array of Strings representing each day of the year, meaning 365 entries.
The index on which an actual value will be displayed on can then depend on the day.
Example: Blood pressure 139 measured on January 10th.
--> x-axis index 9
Blood pressure 139 measured on February 2nd.
--> x-axis index 32
It is not necessary that each possible index on the x-axis (ranged from 0 to 365) is bound to a value.
I hope this helps a little bit, regards
Philipp
from mpandroidchart.
Hi, Philipp,
we did the workaround that you described. But this does not work for large number of x-values. It just takes too much time.
For example, we need to plot values for about 10 years and we have more than one value per day (sometime >20 values per day).
So, it still would be great if you could support for time series.
best regards
Andreas
from mpandroidchart.
+1
from mpandroidchart.
+1, looking forward to seeing this feature, the sooner the better : )
from mpandroidchart.
+1, I am looking for the same feature as well
from mpandroidchart.
+1. Very useful feature
from mpandroidchart.
Just looking for the same feature. Great work, anyway!
from mpandroidchart.
Thanks for the great library. It would be great if you add this feature asap
from mpandroidchart.
+1. I'd love this feature!
from mpandroidchart.
Thanks for cool library!
Maybe anyone already make this feature possible?
@PhilJay Are you working on this feature ? I've got some ideas how to make it real.
from mpandroidchart.
+1, I am looking for the same feature as well
from mpandroidchart.
Hi Guys,
@nekdenis - Could you please discuss the ideas here, I would be glad to contribute using your ideas :)
Thanks,
from mpandroidchart.
+1 same here
from mpandroidchart.
+1
from mpandroidchart.
+1
On Feb 28, 2015 9:22 PM, "Jaroslav Medek" [email protected] wrote:
+1
—
Reply to this email directly or view it on GitHub
#12 (comment)
.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
https://github.com/nekdenis/MPAndroidChart/tree/decart
I've implemented this feature. But here are one bad thing: I'm not using existing data model.
If someone need example usage of this graph I could add it.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1 man come on it is awesome!!!
from mpandroidchart.
Indeed this would make this library the best! Otherwise it already excels
from mpandroidchart.
+1
from mpandroidchart.
+1
On Tue, Apr 21, 2015 at 3:23 PM, Mathieu De Brito [email protected]
wrote:
+1
—
Reply to this email directly or view it on GitHub
#12 (comment)
.
Rajat Deshpande
Mechanical Engineering
IIT BOMBAY
from mpandroidchart.
+1
from mpandroidchart.
@SoftwareRancher You should be able to do this. You can use e.g. a unix-timestamp type of datasystem.
Only drawback is that you are limited in resolution depending on how large you want your vector to become.
from mpandroidchart.
It looked to me (from the API) that the "x values" were basically labels
and would not affect the position of the data on the graph. I need a
set of data points such as
(0, 1), (45,1), (50, 2), (55, 1), (100, 1)
to appear like:
On 04/27/2015 02:52 PM, enffichris wrote:
@SoftwareRancher https://github.com/SoftwareRancher You should be
able to do this. You can use e.g. a unix-timestamp type of datasystem.—
Reply to this email directly or view it on GitHub
#12 (comment).
Jim
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
- 1
from mpandroidchart.
+1
any news?
from mpandroidchart.
+1
from mpandroidchart.
👍 @PhilJay @danielgindi Thanks for the great library! Yet this feature would make it perfect. So I (and I think many others too) would really appreciate it if this feature would come any time soon...
Please keep us posted. Thanks a lot!
from mpandroidchart.
Considering the amount of people who would love this feature. Would it make sense to crowdfund it? How much would be required - if that's an option at all for you @PhilJay
from mpandroidchart.
+1
@nekdenis
Can you add an example usage of your graph. I didn't find it anywhere.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
The library is great. I am using it on my final degree project and I would love to use this feature.
Currently I found a way to use it with not equidistant values even with large values (I tested up to 30000 and there is no problem as the strings are created dynamically) but when you zoom in, the lines on the edges sometimes get invisible #801.
In case someone is interested this is the class I use to replace the strings array:
The other methods that needs to be implemented from List are left with the default implementation:
public class MaxList implements List<String> {
private int max;
public MaxList(){
max = 0;
}
@Override
public void clear() {
max = 0;
}
@Override
public String get(int i) {
if (i<1000){
return String.valueOf(i) + "m";
}else{
return String.valueOf(i/1000)+","+String.valueOf(i%1000)+"km";
}
}
@Override
public int size() {
return max+1;
}
public void addMax(int new_max){
if (new_max > max){
max = new_max;
}
}
@Override
public boolean isEmpty() {
return false;
}
}
Remember to set the max value of your data.
Hope it helps someone and thanks for the great library!
from mpandroidchart.
+1, this is a much needed feature. Would be happy to contribute.
from mpandroidchart.
+1
from mpandroidchart.
+1 Huge missing use case. Has anyone bolted on this functionality in a nice way?
I basically hacked up a solution by creating intervals/indices for 1 second, so viewing a graph over a day is 60 * 60 * 24 intervals where the data points are x-intervals away from my start time.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1 for this feature
That's exactly what I was looking for.
from mpandroidchart.
+1 for this feature which will have multiple applications to display various scientific data.
from mpandroidchart.
+1 for the feature
from mpandroidchart.
@PhilJay Hi Philipp, any news on this ?
I need to show time on the x-axis, but in multiples of 5 minutes (00 - 15:00 - 30:00 as opposed to 00-
14:38, etc...)
Thank you!
from mpandroidchart.
+1
from mpandroidchart.
Is this feature available yet?I am looking for such time series as well. Wonderful library
from mpandroidchart.
+1
from mpandroidchart.
Yep +1! Please save us @PhilJay
from mpandroidchart.
+1 for this feature
from mpandroidchart.
Hello, could you please add examples for this? @nekdenis
from mpandroidchart.
Using the great port of this already great library on iOS. Would love to have support for XY charts!
from mpandroidchart.
+1 This would be a great improvement to the library. XY coordinate is kind of basic of graphing system and its sad that this library doesn't support that.
from mpandroidchart.
Yes. I hope you'll be able to add timeseries in future.
I've switched to your library and this is something that is missing. Previously I've been using aChartEngine.
At the moment I'm using simple indexing method. I've got only days so it's pretty simple. But probably there is a better way of doing that.
from mpandroidchart.
+1 for this feature. It is indeed a great library. Would love to see support for float values in x axis.
from mpandroidchart.
I have the same question. So i change my x values to be equidistant and set to x Axis. Although it looks
work, the callback OnChartValueSelectedListener.onValueSelected can't be called exactly. I'm still finding solution.
@PhilJay any advices? thanks.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
We are also just starting to integrate iOS Charts, great library, thank you. We are running into this limitation as well. We have xValues like 0, 0.2, 3, 5.75, 6.5, 10, 40, 66.7. Using the workaround described, we would have to have xValues every 0.1 steps, which would be a lot, to cover a range of 0-600 for example.
Any news on this feature or some other work around that performs well at larger numbers of values?
Thanks.
from mpandroidchart.
@PhilJay I think, as a first step, the graph should respect the x-indices put into Entry
. It could do this by automatically splitting the graph into [highest x-index] number of increments, then plotting the sparse array of x-indices.
That would allow for relative x-value positioning without instantiating large arrays, which I think is adequate for the majority of use cases here. The drawback is the labels are still attached to the x-indices, as opposed to an actual xy Cartesian graph, but this solution would still be much better than what is available currently.
EDIT: I believe I was mistaken in how the x-indices of Entry work, which actually behaves as I described. I suppose the remaining issue would be the x labels, which should optimally also work with indices to minimize memory impact.
from mpandroidchart.
+1 this feature is extra needed
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1 I'm logging data from events so the xAxis is variable and time based.
from mpandroidchart.
+1
Great library!
I would really appreciate this feature too.
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1
from mpandroidchart.
+1 @PhilJay
from mpandroidchart.
in the name of mankind sir, +1
from mpandroidchart.
+1
from mpandroidchart.
Information very interesting :)
Cyril
Le 10/06/2016 à 16:05, Philipp Jahoda a écrit :
Within the next few weeks v3.0.0 of this library with major changes
will be released which is finally going to close this issue, stay
tuned :-)—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ALlmhbwUpwdiXXW4GqTb0JW68yoycplIks5qKW8WgaJpZM4CN54o.
Des logiciels Android à découvrir:
Pour la sécurité de votre bateau
MarineSecurity et MarineSecurityMap : http://marinesecurity.free.fr
Pour la mesure de votre vitesse et l'optimisation de vos performances à moto/ski, voiture ou en bateau
SpeedMeter : http://androidapp.free.fr
from mpandroidchart.
@PhilJay this branch https://github.com/PhilJay/MPAndroidChart/tree/remove_xindices ?
from mpandroidchart.
This issue being closed, does this mean that the master branch has this implemented now?
from mpandroidchart.
Related Issues (20)
- Highlight issues after i applied RoundedSlicesPieChartRenderer in piechart
- 可以设置初始化Y轴数据的数量 之后一个一个的动态加载吗?
- Help: Dotted Background
- 使用implementation ("com.github.PhilJay:MPAndroidChart:v3.0.2")报错
- Values above the Horizontal bars Disappears when I zoomed in
- dataSet.gradientColors = gradientColors not working
- Fatal Exception: java.lang.NegativeArraySizeException HOT 4
- LineDataSet: shader with multiple color
- Getting crash while selection camera cropping only in Android 10
- How to rotate the Tooltip arrow Based on the touch points
- Documentation Link Failed! HOT 4
- When drawing Bezier curves vertically in LineChart, the curve flickers.
- Fatal Exception: java.lang.NullPointerException Attempt to read from null array
- Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
- Crash app with large data
- 如何绘制x轴带图片
- com.github.mikephil.charting.utils.Utils drawImage When the width and height are unequal, it may lead to deformation of the drawn icon
- Multi same x data find index by closestToY in getEntryIndex function error
- chart not rendered when line color is transparent but fill color is blue
- Clicked view/coordinate information on pie chart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpandroidchart.