Legends custom onclick event

Can we apply do custom onclick events on Legends in a graph ??

or else can we extract clickData from legends in it ?