add interactivity between legend and pie chart