Fix swipe gesture in chart