rearranges y and y2 for flipped charts for better readability