hellocharts-android
hellocharts-android copied to clipboard
Problems with equal values ββon the y axis
Hello ... I don't know if it's a problem, but when I have equal Y-axis values ββon my line chart, it just doesn't show anything on the chart. See example below
List<PointValue> values = new ArrayList<PointValue>(); values.add(new PointValue(0, 2)); values.add(new PointValue(1, 2)); values.add(new PointValue(2, 2)); values.add(new PointValue(3, 2));
Same problem
yep, have same problem, do we have any solumtion @lecho ?
It's seems that here https://github.com/lecho/hellocharts-android/issues/455 it was fixed by @uCloudCastle, but for me it doesn't work, seems that problem is because of decimals...
Hi guys, it's been a while since I was active in this repo. I believe the problem is related to the "feature" that this library calculates viewport automatically(min and max for both axis). When all points have the same value min and max are the same and thereby viewport has height/width of 0. It can be disabled and set manually. For solution, please take a look at issue #169 and #143
Hi, thank for your response, but this issue has been fixed here https://github.com/lecho/hellocharts-android/issues/455.