Legend close button resets the pie chart selector