It depends on the context but the legend is probably a box on a document which explains the codes or abbreviations used when grading exams.
Someone can be informally described as a "legend" if they work really hard and go a great job. So someone who does a great job of grading could be described by his fellow teachers as a "grading legend".