add legend for viz graph