Fixed typos in legend docs.

Closes #1904