allow to change legend color

Change-Id: Idddf35bf4ccc1b3f8a940783e684c95de965289f