Flip tooltip horizontally when it would overflow the chart on the right side