adjusted canvas size on line graph