Your example starts with an empty array. Can you paste the actual code that creates var data?
–
ssorallenAug 6 '13 at 4:00

Are you sure a multi-dimensional array like this is actually the best structure? An array of objects seems better suited to your problem.
–
Nick TomlinAug 6 '13 at 4:00

How do you expect us to help you? You're just adding elements to your array, but who knows what's in them as you didn't provide any of the code. You're also not adding arrays to your array.
–
BradAug 6 '13 at 4:00