I want to set yAxis.rangePaddingHigh vary by maximum data of yAxis about 10%.
I try something like this
NSNumber * testNum = [NSNumbernumberWithDouble:[mainChart.yAxis.axisRange.maximumdoubleValue]*0.1];
mainChart.yAxis.rangePaddingHigh = testNum;
but the maximum value is always null and the chart did not change anything.
I don't understand when the minimum and maximum of range will have value.
Is there any solutions for my case?