Android Question [NO ISSUE] xchart question

giggetto71

Active Member
Licensed User
Longtime User
Hi, I am using the great xgraph libray by @klaus to draw a line type of graph out of points coming from sensors
I have a question. If I use autoscale, the graph adds automatically a (0,0) point and if the values are very close one to each other in y (like for example a temperature which varies very slowly) you kind of lose visually the small variations until the max number of points are exceeded. at that point the autoscale works very good and the graph is scaled nicely so you can appreciate even small variations.
Is there a way to avoid the (0.0) point addition and still keep the autoscale?
thanks!

1743136618880.png


1743136997195.png
 

klaus

Expert
Licensed User
Longtime User
The graphs you are showing look like xChart line graphs and not xGraph graphs.
None of these libraries adds any point on its own.
How do you add the points ?
My be you add them in a For / Next loop beginning with 1 and not 0.
 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
@klaus I am clearly too old...you are right for both: the lib (great lib) is indeed xChart and NOT xGraph..and yes..the (0,0) was from me..
 
Upvote 0
Top