How to create an HR legend