I would like to short axis labels whenever any of the value on axis label is bigger than 1 million (for example let’s pretend we have on axis labels: 500000, 1000000, 1500000, 200000, I would like to have 0.5M, 1.0M, 1.5M, 2.0M). I can do it in stringForId:(id)obj of the extended class, but if I do my chart isn’t filling the whole space (because the string 2000000 is wider than 2.0M and there is empty space).
In this situation the chart needs to know about the length of the longest label - you can give it this information via the delegate method
-(NSString *)sChart:(ShinobiChart *)chart longestLabelStringOnAxis:(SChartAxis *)axis;
Which will cause the chart to allocate less space for your abbreviated labels.
Hope this helps!