PanGestureRecognizer Added: now the graph is dynamically changed.