Add sample for custom legend