made graphs resize and added fixed constraints to the line graph's x axis size