add line graph in main.js