Adding legend to line graph