Add legend hover event for the chart.