Problem with 2.2.1 generateTickMarks: / longestLabel


#1

It appears that SChartNumberAxis generateTickMarks: gets stuck in an infinite loop.  I have three SChartDataPoints, all three have exact same yValue.

-(NSString *) longestLabelStringOnAxis:(SChartAxis *)axis of my axis class is never called, instead chart delegate -(NSString *)sChart:(ShinobiChart *)chart longestLabelStringOnAxis:(SChartAxis *)axis is called repeatedly.

#0    0x0003049a in -[ScopeViewController sChart:longestLabelStringOnAxis:] 
#1    0x0016d319 in -[SChartAxis longestLabel] ()
#2    0x0017b908 in -[SChartNumberAxis longestLabel] ()
#3    0x0016d872 in -[SChartAxis sizeTickLabels] ()
#4    0x0017be29 in -[SChartNumberAxis updateInternalTickFrequencies:] ()
#5    0x0016e8ec in -[SChartAxis autoGenerateTickMarks:] ()
#6    0x0016f536 in -[SChartAxis generateTickMarks:] ()

#2

Hi DZRus,

Did you ever get to the bottom of this issue? It could possibly be some method call being made in your implementation of **-(NSString *)sChart:(ShinobiChart *)chart longestLabelStringOnAxis:(SChartAxis *)axis **that is resulting in the infinite loop. Would it be possible for you to tell us what method calls on what objects are being made in your implementation of this method? - this would be really helpful in discovering what the problem is.

Thanks

Ryan