1. Are you ready for the Galaxy S20? Here is everything we know so far!

return the graduated axes of the graph to the center in GraphView

Discussion in 'Android Lounge' started by beirou, Apr 2, 2020.

  1. beirou

    beirou Lurker
    Thread Starter

    Good evening. I have a problem with GraphView I want to bring the graduated axes to the center of the coordinate system :

    double x,y;
    x=-100;
    y=0;
    GraphView graph =findViewById(R.id.graph_view);



    series=new LineGraphSeries<>();

    int numDataPoints=500;
    for (int i = 0; i <numDataPoints;i++){

    x=x+0.3;

    y=x*x;
    series.appendData(new DataPoint(x,y),true,500);

    }
     


  2. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Welcome to Android Forums, beirou! :)

    You're most likely to get help with your app by posting on our Android Development board. That's where other app developers hang out!
     
Loading...

Share This Page

Loading...