Add Custom Legend example (fixes #374)