flatData may be sorted properly; may also need to switch the sort order.

Next thing to do is to get the bubbles set right; the x values are a mess since I switched from nested to flat data.