switching line graph