Add a legend event on click (enhancedLegendRenderer)