Legend and click events.