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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -