changing line graph on click