android graph view not shown when the data is the same -


i'm using android graph view here works fine , when y value of data same doesn't show thing more whole view visibility gone. can handle appending fake value data point doesn't fine.does have idea. lot! part of code

/... datapoint[] datapoints = new datapoint[length]; // populate datapoints linegraphseries<datapoint> series = new linegraphseries<datapoint>(                             datapoints); graph.removeallseries(); graph.addseries(series); // make other stuff /... 

you don't need append fake value.

in case have mentioned (same value y) works correctly, line created coincides on x-axis y-axis starting y value have set, not zero. changing line colour adding following lines code, able see drawn line.

graph.setbackgroundcolor(getresources().getcolor(android.r.color.holo_blue_bright)); series.setcolor(color.green); graph.getviewport().setscalable(true); graph.getviewport().setscrollable(true); 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -