added support for uniqueLegend

uniqueLegend

Display only unique legend items, removing any duplicates