Changing the length of the displayed on graph