I use the awesome iOS Charts library ( https://github.com/danielgindi/ios-charts ) and itβs hard for me to find anything to support this behavior in the documentation. I would like to make the y axis always display a range from 0-35. Currently, if I have only one data record, say (0, 9), the y axis will display its range as 0-9. However, when I add another entry to (1, 32), suddenly I see the top of the graph at 35.
There are three methods that look promising (because they are related), but they do not quite provide the type of behavior I am looking for.
1: Chart.setVisibleYRangeMaximum (if only it was Minimum ...)
2: Chart.setVisibleXRangeMaximum (useless again ...)
3: Chart.setVisibleXRangeMinimum (now when is your YRange cousin ?!)
Anyway, where I am. I read the documentation, but to no avail. Help me SO?
source share