Added panning to graph