Giter Site home page Giter Site logo

Comments (116)

PhilJay avatar PhilJay commented on May 5, 2024 19

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.

bhspencer avatar bhspencer commented on May 5, 2024 1

I am looking for an android equivalent to to vis.js graph2d http://visjs.org/graph2d_examples.html

from mpandroidchart.

SoftwareRancher avatar SoftwareRancher commented on May 5, 2024 1

+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.

forkch avatar forkch commented on May 5, 2024 1

+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.

PhilJay avatar PhilJay commented on May 5, 2024 1

Yes, & the latest release.

from mpandroidchart.

PhilJay avatar PhilJay commented on May 5, 2024

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.

onyame avatar onyame commented on May 5, 2024

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.

AndroidGecko avatar AndroidGecko commented on May 5, 2024

+1

from mpandroidchart.

SiyiLi avatar SiyiLi commented on May 5, 2024

+1, looking forward to seeing this feature, the sooner the better : )

from mpandroidchart.

skadyrov avatar skadyrov commented on May 5, 2024

+1, I am looking for the same feature as well

from mpandroidchart.

nesterov-n avatar nesterov-n commented on May 5, 2024

+1. Very useful feature

from mpandroidchart.

pgmo avatar pgmo commented on May 5, 2024

Just looking for the same feature. Great work, anyway!

from mpandroidchart.

subairariyil avatar subairariyil commented on May 5, 2024

Thanks for the great library. It would be great if you add this feature asap

from mpandroidchart.

oinegue avatar oinegue commented on May 5, 2024

+1. I'd love this feature!

from mpandroidchart.

nekdenis avatar nekdenis commented on May 5, 2024

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.

dowi avatar dowi commented on May 5, 2024

+1, I am looking for the same feature as well

from mpandroidchart.

rajatdeshpande avatar rajatdeshpande commented on May 5, 2024

Hi Guys,

@nekdenis - Could you please discuss the ideas here, I would be glad to contribute using your ideas :)

Thanks,

from mpandroidchart.

Ploppy3 avatar Ploppy3 commented on May 5, 2024

+1 same here

from mpandroidchart.

medy75 avatar medy75 commented on May 5, 2024

+1

from mpandroidchart.

rajatdeshpande avatar rajatdeshpande commented on May 5, 2024

+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.

bhspencer avatar bhspencer commented on May 5, 2024

+1

from mpandroidchart.

taltstidl avatar taltstidl commented on May 5, 2024

+1

from mpandroidchart.

nekdenis avatar nekdenis commented on May 5, 2024

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.

palasjir avatar palasjir commented on May 5, 2024

+1

from mpandroidchart.

Robyer avatar Robyer commented on May 5, 2024

+1

from mpandroidchart.

webventil avatar webventil commented on May 5, 2024

+1

from mpandroidchart.

j0d5 avatar j0d5 commented on May 5, 2024

+1

from mpandroidchart.

dhofmann404 avatar dhofmann404 commented on May 5, 2024

+1

from mpandroidchart.

idellwig avatar idellwig commented on May 5, 2024

+1

from mpandroidchart.

burix avatar burix commented on May 5, 2024

+1 man come on it is awesome!!!

from mpandroidchart.

enffichris avatar enffichris commented on May 5, 2024

Indeed this would make this library the best! Otherwise it already excels

from mpandroidchart.

mathieudebrito avatar mathieudebrito commented on May 5, 2024

+1

from mpandroidchart.

rajatdeshpande avatar rajatdeshpande commented on May 5, 2024

+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.

FranzBusch avatar FranzBusch commented on May 5, 2024

+1

from mpandroidchart.

enffichris avatar enffichris commented on May 5, 2024

@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.

SoftwareRancher avatar SoftwareRancher commented on May 5, 2024

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.

SrMouraSilva avatar SrMouraSilva commented on May 5, 2024

+1

from mpandroidchart.

matejcikm avatar matejcikm commented on May 5, 2024

+1

from mpandroidchart.

wangningdy avatar wangningdy commented on May 5, 2024

+1

from mpandroidchart.

marctatham avatar marctatham commented on May 5, 2024
  • 1

from mpandroidchart.

rascheC avatar rascheC commented on May 5, 2024

+1
any news?

from mpandroidchart.

elmarcoh avatar elmarcoh commented on May 5, 2024

+1

from mpandroidchart.

fountaingeyser avatar fountaingeyser commented on May 5, 2024

👍 @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.

enffichris avatar enffichris commented on May 5, 2024

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.

puuro avatar puuro commented on May 5, 2024

+1
@nekdenis
Can you add an example usage of your graph. I didn't find it anywhere.

from mpandroidchart.

learnerbyheart avatar learnerbyheart commented on May 5, 2024

+1

from mpandroidchart.

mvojtkovszky avatar mvojtkovszky commented on May 5, 2024

+1

from mpandroidchart.

SergioEscuder avatar SergioEscuder commented on May 5, 2024

+1

from mpandroidchart.

9and3r avatar 9and3r commented on May 5, 2024

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.

sowrabh avatar sowrabh commented on May 5, 2024

+1, this is a much needed feature. Would be happy to contribute.

from mpandroidchart.

subhanshuja avatar subhanshuja commented on May 5, 2024

+1

from mpandroidchart.

micnguyen avatar micnguyen commented on May 5, 2024

+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.

bomiyr avatar bomiyr commented on May 5, 2024

+1

from mpandroidchart.

Mashnin avatar Mashnin commented on May 5, 2024

+1

from mpandroidchart.

knseir avatar knseir commented on May 5, 2024

+1

from mpandroidchart.

prabel avatar prabel commented on May 5, 2024

+1

from mpandroidchart.

Brian0122 avatar Brian0122 commented on May 5, 2024

+1

from mpandroidchart.

doom369 avatar doom369 commented on May 5, 2024

+1

from mpandroidchart.

prateekdwv avatar prateekdwv commented on May 5, 2024

+1 for this feature
That's exactly what I was looking for.

from mpandroidchart.

forum6691 avatar forum6691 commented on May 5, 2024

+1 for this feature which will have multiple applications to display various scientific data.

from mpandroidchart.

amandeepgautam avatar amandeepgautam commented on May 5, 2024

+1 for the feature

from mpandroidchart.

knseir avatar knseir commented on May 5, 2024

@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.

alexpell00 avatar alexpell00 commented on May 5, 2024

+1

from mpandroidchart.

ranj27 avatar ranj27 commented on May 5, 2024

Is this feature available yet?I am looking for such time series as well. Wonderful library

from mpandroidchart.

zdesiree avatar zdesiree commented on May 5, 2024

+1

from mpandroidchart.

zjuhasz avatar zjuhasz commented on May 5, 2024

Yep +1! Please save us @PhilJay

from mpandroidchart.

JohanCosemans avatar JohanCosemans commented on May 5, 2024

+1 for this feature

from mpandroidchart.

funkvps avatar funkvps commented on May 5, 2024

Hello, could you please add examples for this? @nekdenis

from mpandroidchart.

mehdi-shiba avatar mehdi-shiba commented on May 5, 2024

Using the great port of this already great library on iOS. Would love to have support for XY charts!

from mpandroidchart.

mohitagrawal avatar mohitagrawal commented on May 5, 2024

+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.

adek avatar adek commented on May 5, 2024

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.

cerebrahm avatar cerebrahm commented on May 5, 2024

+1 for this feature. It is indeed a great library. Would love to see support for float values in x axis.

from mpandroidchart.

ff0o0 avatar ff0o0 commented on May 5, 2024

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.

binujayaram avatar binujayaram commented on May 5, 2024

+1

from mpandroidchart.

nilslukas avatar nilslukas commented on May 5, 2024

+1

from mpandroidchart.

tripplemac avatar tripplemac commented on May 5, 2024

+1

from mpandroidchart.

mat90c avatar mat90c commented on May 5, 2024

+1

from mpandroidchart.

refaelsh avatar refaelsh commented on May 5, 2024

+1

from mpandroidchart.

apatrone avatar apatrone commented on May 5, 2024

+1

from mpandroidchart.

rlimberger avatar rlimberger commented on May 5, 2024

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.

pluscubed avatar pluscubed commented on May 5, 2024

@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.

MGasztold avatar MGasztold commented on May 5, 2024

+1 this feature is extra needed

from mpandroidchart.

RyGuyM avatar RyGuyM commented on May 5, 2024

+1

from mpandroidchart.

cgathergood avatar cgathergood commented on May 5, 2024

+1

from mpandroidchart.

mazzonem avatar mazzonem commented on May 5, 2024

+1

from mpandroidchart.

stevekelly20 avatar stevekelly20 commented on May 5, 2024

+1

from mpandroidchart.

sschale avatar sschale commented on May 5, 2024

+1

from mpandroidchart.

johnfrey99 avatar johnfrey99 commented on May 5, 2024

+1

from mpandroidchart.

dalewking avatar dalewking commented on May 5, 2024

+1

from mpandroidchart.

MarioGravel avatar MarioGravel commented on May 5, 2024

+1 I'm logging data from events so the xAxis is variable and time based.

from mpandroidchart.

Philipp2405 avatar Philipp2405 commented on May 5, 2024

+1
Great library!
I would really appreciate this feature too.

from mpandroidchart.

Datalization avatar Datalization commented on May 5, 2024

+1

from mpandroidchart.

MonStar1 avatar MonStar1 commented on May 5, 2024

+1

from mpandroidchart.

TeunKooijman avatar TeunKooijman commented on May 5, 2024

+1

from mpandroidchart.

 avatar commented on May 5, 2024

+1 @PhilJay

from mpandroidchart.

shohiebsense avatar shohiebsense commented on May 5, 2024

in the name of mankind sir, +1

from mpandroidchart.

biovolt avatar biovolt commented on May 5, 2024

+1

from mpandroidchart.

forum6691 avatar forum6691 commented on May 5, 2024

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.

FabianTerhorst avatar FabianTerhorst commented on May 5, 2024

@PhilJay this branch https://github.com/PhilJay/MPAndroidChart/tree/remove_xindices ?

from mpandroidchart.

rlimberger avatar rlimberger commented on May 5, 2024

This issue being closed, does this mean that the master branch has this implemented now?

from mpandroidchart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.