Implement chartLegend