• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

beirou

Lurker
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);

}
 
Back
Top Bottom