Android Question [SOLVED] Issue with xChart line Autoscale

giggetto71

Active Member
Licensed User
Longtime User
Hi,
I am using the great xChart library.
I think I found an issue (or maybe I am missing something).
i am attaching a super simple project: it's just a button that sets values to the xChart line chart.
the xChart has autoscale set to true: if I set decimal values below x.5 (include) it works fine. (you can try by setting for example 1.5 for 10 or more times. same for 1.4,1.3,1,2,1,1 a 1.0.
if I try to do the same with 1.6 or 1.7 or 1.8 or 1.9 the line disappears after the 10 point..
Any idea?
 

Attachments

  • XChartAutoScale.zip
    10.8 KB · Views: 104

klaus

Expert
Licensed User
Longtime User
Can you please test the new xChart.b4xlib.
The automatic scales calculation was wrong when all points have the same value and especially when there was only one point.
 

Attachments

  • xChart.b4xlib
    46.2 KB · Views: 114
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
yes! works like a charm! thanks for this super quick fix! you are one the many blessings in this incredible community! thanks!!!
 
Upvote 0
Top