add support for uniqueLegend
Merge pull request #36 from quanghiem/master

added support for uniqueLegend