Fix NullPointerException
Use line graph instead of bar graph