Add legend to comparison page.

Fixes #336