java - Fix (freeze) y axis for Android GraphView package -


i need way fix y axis graph view package. showing real time frequency spectra not possible visualise data y axis adjusts current largest value. please advise. offer bounty answer solves problem.

package: http://android-graphview.org/#documentation

if know range if y axis, method setmanualyaxisbounds(max,min) can used. example, if using sin function,

graphview.setmanualyaxisbounds(1,-1); 

or if yours percentage graph,

graphview.setmanualyaxisbounds(100,0); 

if have values plotted in array, again method can used max , min values of array (with formatting looks neater).


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -