Add resize handler to pie chart