I am plotting 7 time series using a LineSeries and I want to stack them. I am getting the same exception as is described on the Shinobi forum on the page linked below.
*** Terminating app due to uncaught exception 'NSRangeException',
reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(
0 CoreFoundation
0x0464c5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib
0x0315d8b6 objc_exception_throw + 44
The solution as described in the answer is as follows:
"If you are stacking series, you now need to ensure that the x values of your series (or y values for vertical series) are in ascending order."
My problem is that I don't understand this. My x-values are dates ordered from past to present. My y-values are count values. What & how am I supposed to order exactly? The only thing left to order are my y-values.
If I order my y-value does that mean my x-values (dates) will be unordered and the chart algorithm will put them together?
I just can't get me head around it :-(