Modifying the line graph